我正在使用CoreLocation Framework獲取我的項目中的經度和緯度。didUpdateLocations委託方法不在iOS 5.1和更早版本中調用
我在我的.m文件執行此委託方法
- (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations {
NSLog(@"Locations : %@", locations);
}
但在安裝iOS 5.0 & 5.1,此方法不調用。 ,並在iOS 6.0或更高版本中調用正確。 所以如何在iOS 5.0或更高版本中調用此方法。
重複的問題http://stackoverflow.com/questions/12602463/didupdatelocations-instead-of-didupdatetolocation – Tirth