0
我在ios 8中使用此代碼當前位置,但是這給第三行上的錯誤 錯誤是「沒有已知的選擇器類的方法requestAlwaysAuthorization」。當前位置在ios 8中的錯誤
if ([CLLocationManager respondsToSelector:
@selector(requestWhenInUseAuthorization)]) {
[CLLocationManager requestWhenInUseAuthorization];
}
http://matthewfecher.com/app-developement/getting-gps-location-using -core-location-in-ios-8-vs-ios-7/ – WhiteLine 2014-10-28 07:51:00
http://stackoverflow.com/questions/24062509/ios-8-location-services-not-working – WhiteLine 2014-10-28 07:55:37