【发布时间】:2013-09-20 03:28:10
【问题描述】:
我在我的 ios 应用程序中使用我的 google map ios sdk,我设置了mylocationbutton = yes;
这是完整的代码
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:-33.86 经度:151.20 缩放:6]; mapView_ = [GMSMapView mapWithFrame:CGRectZero camera:camera]; mapView_.myLocationEnabled = YES; self.view = mapView_;
mapView_.delegate = self;
mapView_.settings.myLocationButton = YES;
mapView_.settings.compassButton = YES;
在ios 6或更早的版本中运行良好,按钮出现在右下角。
但我发现如果应用在 ios 7 设备或模拟器上运行,按钮会消失
我已经将不同的部署级别从 5 更改为 7
【问题讨论】:
标签: google-maps ios7