मैं नए iOS deffered स्थान अद्यतन के 6 सुविधा का उपयोग लेकिन यह त्रुटि मिल रही पर रखने के लिए कोशिश कर रहा हूँ:स्थगित स्थान आईओएस 6 के साथ कैसे काम करें?
didFinishDeferredUpdatesWithError: त्रुटि डोमेन = kCLErrorDomain कोड = 11 "कार्रवाई पूर्ण नहीं किया जा सकता है (kCLErrorDomain त्रुटि। 11.) "
मैं निम्नलिखित कोड का उपयोग कर रहा:
- (DeviceAPI *) init
{
locationManager = [[CLLocationManager alloc] init];
[locationManager setDelegate:self];
[locationManager setDesiredAccuracy:kCLLocationAccuracyBest];
[locationManager startUpdatingLocation];
[locationManager allowDeferredLocationUpdatesUntilTraveled:(CLLocationDistance)100000 timeout:(NSTimeInterval)100000];
return self;
}
और यह callback
समारोह:
- (void)locationManager: (CLLocationManager *) manager
didFinishDeferredUpdatesWithError:(NSError *)error
{
NSLog(@"didFinishDeferredUpdatesWithError :%@", [error description]);
}
कोई मदद?
त्रुटि 11 के लिए' 'kCLErrorDomain' है kCLErrorDeferredFailed' प्रलेखन [यहां] (https देखें:।। // डेवलपर। apple.com/library/mac/documentation/CoreLocation/Reference/CoreLocationConstantsRef/index.html#//apple_ref/c/tdef/CLError)। – Pang
मुझे यह आईओएस 10 की तलाश में मिला http://stackoverflow.com/questions/39498899/deferredlocationupdates अनुपलब्ध-रिटर्न-नो-इन-आईओएस -10 –