【发布时间】:2014-09-30 02:01:25
【问题描述】:
所以我最近更新到与 iOS 8 兼容的最新 Parse SDK,并添加了两个键 NSLocationWhenInUseUsageDescription 和 NSLocationAlwaysUsageDescription...但由于某种原因 [PFGeoPoint geopointForCurrentLocationInBackground] 没有被调用...我没有明白为什么。
这是代码的sn-p:
[PFGeoPoint geoPointForCurrentLocationInBackground:^(PFGeoPoint *geoPoint, NSError *error) {
if(!error){
NSLog(@"Got current geopoint!");
....
else{
UIAlertView *errorAlert = [[UIAlertView alloc]initWithTitle:@"Oops!" message:[error description] delegate:self cancelButtonTitle:nil otherButtonTitles:@"Okay", nil];
[errorAlert show]; }
}];
有人可以帮忙吗?
【问题讨论】:
标签: ios parse-platform ios8