【问题标题】:How to relocate or move the current location button on Google Maps SDK?如何重新定位或移动 Google Maps SDK 上的当前位置按钮?
【发布时间】:2014-11-17 08:25:08
【问题描述】:

如何将objective-c 中的当前位置按钮移动到我的偏好?

现在,我已启用它,但我在底角有东西挡住了它。

谢谢

【问题讨论】:

标签: ios objective-c xcode google-maps


【解决方案1】:

您可以使用内边距将按钮向上移动:

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

【讨论】:

  • 这会为完整的地图视图添加一个填充。如果我们只想移动按钮怎么办?
  • 对于ojbective-CUIEdgeInsetsMake(0.0, 0.0, 50.0, 0.0);
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2021-10-09
  • 2013-05-28
  • 1970-01-01
  • 1970-01-01
  • 2014-01-24
  • 2018-09-13
  • 2016-08-06
相关资源
最近更新 更多