2014-11-17 59 views
2

我如何将objective-c中的当前位置按钮移动到我的偏好?如何重新定位或移动Google Maps SDK上的当前位置按钮?

现在,我已启用它,但我有一些东西阻止它在底角。

enter image description here

感谢

+0

可能重复[谷歌地图iOS版SDK移动“我的位置”按钮,左下角] (http://stackoverflow.com/questions/16879694/google-maps-ios-sdk-move-my-location-button-to-bottom-left-hand-corner) –

回答

3

您可以使用填充移动扣:

self.mapView.padding = UIEdgeInsets(top: 0, left: 0, bottom: 50, right: 0) 
+2

这会在完整的地图视图中添加填充。如果我们只想移动按钮怎么办? 'ojbective-C'的 – CoachNono

+1

:'UIEdgeInsetsMake(0.0,0.0,50.0,0.0);' – andi

相关问题