How do you move the legal sign in mapview

后端 未结 11 2060
别跟我提以往
别跟我提以往 2020-12-05 20:24

I wonder if anyone know how you move the legal sign on a mapview, right now my toolbar is covering it. Does anyone know how? There is lot\'s of help with the google logo but

11条回答
  •  渐次进展
    2020-12-05 20:26

    Swift 4+

    You can change the position of those by setting the layoutMargins of the mapView.

    For example this will push it off from the bottom:

    mapView.layoutMargins.bottom = -100
    

    Also you can change edge insets you need all at once:

    mapView.layoutMargins = UIEdgeInsets(top: 0, left: 0, bottom: -100, right: 0)
    

提交回复
热议问题