我怎样才能获得CLLocationManager委托方法,当应用程序已经进入后台,当应用程序处于后台模式时,如何调用CLLocationmanger委托方法?
我是新来CLLocationManager
其实我的应用程序被调用CLLocationmanager dalegate方法,当应用程序在前台,但运行时,应用程序进入后台那些不叫。
通过使用
[locationManager startMonitoringForRegion:region desiredAccuracy:kCLLocationAccuracyBest];
方法我的应用程序被调用这些方法
- (void)locationManager:(CLLocationManager *)manager didEnterRegion:(CLRegion *)region {
NSLog(@"Entered Region");
}
- (void)locationManager:(CLLocationManager *)manager didExitRegion:(CLRegion *)region {
NSLog(@"Exited Region");
}
如何使用在appDelegate
类CLLocationmanagerdelegate
?
是的,我也有同样的问题。我在plist中设置为“所需的背景模式到应用程序注册的位置更新”,但没有解决..可以帮助任何人?....谢谢.. –