如何重新定位或移动Google Maps SDK上的当前位置按钮? [英] How to relocate or move the current location button on Google Maps SDK?

查看:107
本文介绍了如何重新定位或移动Google Maps SDK上的当前位置按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将objective-c中的当前位置按钮移动到我的首选项?



现在,我已启用它,但我有一些阻止它在

p>

谢谢

解决方案

你可以使用padding来移动按钮:

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


How would I move the current location button in objective-c to my preference?

Right now, I have it enabled, but I have something blocking it in the bottom corner.

Thanks

解决方案

You can use padding to move the button up:

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

这篇关于如何重新定位或移动Google Maps SDK上的当前位置按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆