Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 如何在iOS8中使用当前位置所有注释pin显示Google地图_Iphone_Ios8_Mapkit - Fatal编程技术网

Iphone 如何在iOS8中使用当前位置所有注释pin显示Google地图

Iphone 如何在iOS8中使用当前位置所有注释pin显示Google地图,iphone,ios8,mapkit,Iphone,Ios8,Mapkit,我必须在iOS8.0中显示谷歌地图。我可以打开谷歌地图,但地图显示不清楚。请检查屏幕截图。我已经在info.plist中授予了权限,并编写了相应的代码。。。请在下面查看 self.mLocationManager = [[CLLocationManager alloc] init]; self.mLocationManager.delegate = self; self.mLocationManager.desiredAccuracy=kCLLocationAccuracyBest; self.

我必须在iOS8.0中显示谷歌地图。我可以打开谷歌地图,但地图显示不清楚。请检查屏幕截图。我已经在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];
我还想在map rect上显示当前位置和地图上显示的所有注释。我该怎么做?

Info.plist

NSLocationAlwaysUsageDescription  Location is required to find out where you    are

 NSLocationWhenInUseUsageDescription Location is required to find out where you are

是否已在AppDelegate.m中添加密钥?已在info.plist文件中添加。。不是应用程序内委托。。请检查以上帖子中的新行。你是如何添加地图的?从xib或您的代码?self.mMapView=[[MKMapView alloc]initWithFrame:CGRectMake(0,(导航滑块间隙),mainScreen.bounds.size.width,mainScreen.bounds.size.height-(导航滑块间隙));self.mMapView.delegate=self;已经添加了代码。@Ajay_Kumar:那不是“谷歌地图”
MKMapView
是“苹果地图工具包”。这个问题与谷歌地图无关。将“google maps”标记更改为“mkmapview”。