【发布时间】:2014-11-14 05:19:36
【问题描述】:
我有
NSLocationWhenInUseUsageDescription
和
NSLocationAlwaysUsageDescription
在我的 Info.plist 中定义。
在我的代码中
if ([_locationManager respondsToSelector:@selector(requestWhenInUseAuthorization)]) {
[_locationManager requestWhenInUseAuthorization];
}
[_locationManager startUpdatingLocation];
而且我在 iOS8 上没有收到提示。
我在我的模拟器中进行了全新的重新安装。在没有 3 if 块的 iOS7 上,我收到提示。
在 startUpdatingLocation 之后,我检查了[CLLocationManager authorizationStatus],即0- kCLAuthorizationStatusNotDetermined
如何提示iOS8用户?
【问题讨论】:
标签: ios8 core-location