Objective c iOS 8地理围栏处理从锁屏图标打开的应用程序
我正在我的应用程序中使用地理围栏,按需要的顺序调用这行代码,一切正常。当设备进入跟踪区域时,我可以看到我的应用程序图标出现在锁定屏幕上:Objective c iOS 8地理围栏处理从锁屏图标打开的应用程序,objective-c,ios8,core-location,cllocationmanager,geofencing,Objective C,Ios8,Core Location,Cllocationmanager,Geofencing,我正在我的应用程序中使用地理围栏,按需要的顺序调用这行代码,一切正常。当设备进入跟踪区域时,我可以看到我的应用程序图标出现在锁定屏幕上: [self.locationManager requestAlwaysAuthorization]; [self.locationManager startMonitoringSignificantLocationChanges]; [self.locationManager startMonitoringForRegion: [[CLCircularRe
[self.locationManager requestAlwaysAuthorization];
[self.locationManager startMonitoringSignificantLocationChanges];
[self.locationManager startMonitoringForRegion: [[CLCircularRegion alloc] initWithCenter:CLLocationCoordinate2DMake(airport.latitude.doubleValue, airport.longitude.doubleValue) radius:AFLLocationManager_geofencingTrackingRegionMetersRadius identifier:airport.code]];
问题是当用户实际在锁屏上使用我的应用图标并从锁屏启动/恢复应用时,我如何处理该事件?
我相信
launchOptions
字典中的uiapplicationaunchoptionslocationkey
可以用于从锁屏事件启动应用程序,但是如果应用程序不启动,只是变为活动状态呢?谢谢 显然有两个事件可以触发并在锁屏上显示应用程序图标