我必须在iOS8.0中显示Google地图。我可以打开谷歌地图,但地图不清楚。请查看截图。我已经在info.plist中给出了许可,并且还编写了相应的代码......请在下面查看...
self.mLocationManager = [[CLLocationManager alloc] init];
self.mLocationManager.delegate = self;
self.mLocationManager.desiredAccuracy=kCLLocationAccuracyBest;
self.mLocationManager.distanceFilter = kDistanceFiveHundredMeters;
if ([self.mLocationManager respondsToSelector:@selector(requestWhenInUseAuthorization)]) {
[self.mLocationManager requestWhenInUseAuthorization];
}
if ([self.mLocationManager respondsToSelector:@selector(requestAlwaysAuthorization)]) {
[self.mLocationManager requestAlwaysAuthorization];
}
[self.mLocationManager startUpdatingLocation];
我还希望显示当前位置以及在地图上一起显示在地图上的所有注释。我该怎么做?
的Info.plist
NSLocationAlwaysUsageDescription Location is required to find out where you are
NSLocationWhenInUseUsageDescription Location is required to find out where you are