如何在iOS8中显示谷歌地图,当前位置是所有注释引脚

时间:2015-05-14 07:52:48

标签: iphone ios8 mapkit

我必须在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];

我还希望显示当前位置以及在地图上一起显示在地图上的所有注释。我该怎么做? enter image description here

的Info.plist

NSLocationAlwaysUsageDescription  Location is required to find out where you    are

 NSLocationWhenInUseUsageDescription Location is required to find out where you are

0 个答案:

没有答案