当我的应用程序再次激活时,我收到错误消息。它从后台返回。
我猜它是我的陀螺仪,但还没有找到解决方案。
我的错误:
-[WebDataSource onGeomagneticModel:]: unrecognized selector sent to instance 0x37c430
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[WebDataSource onGeomagneticModel:]: unrecognized selector sent to instance 0x37c430'
我的应用程序DidEnterBackground:
- (void)applicationDidEnterBackground:(UIApplication *)application{
NSLog(@"Application moving to background");
LocationManagerDelegate *locationController = [[LocationManagerDelegate alloc] init];
[locationController.locationManager stopUpdatingHeading];
[locationController stopDeviceMotion];
}