【发布时间】:2012-04-02 20:44:15
【问题描述】:
我的班级被设置为位置管理器的代表,并且此代码中的日志会打印出来。
- (BOOL)locationManagerShouldDisplayHeadingCalibration:(CLLocationManager *)manager {
NSLog(@"will NOT display calibration");
[manager performSelector:@selector(dismissHeadingCalibrationDisplay) withObject:nil afterDelay:.25]; //This should never get displayed but does for some reason
return NO;
}
尽管如此,校准挡板始终显示在应用程序上。比它忽略我不显示的请求更烦人的是,从 5.1 开始,校准似乎非常敏感:只要手机靠近收音机、电脑,或者不在空旷的地方,它就会出现 - 大致每次我运行应用程序时。
这会让我的用户发疯,尽管我正在考虑从我的应用中删除标题。
有人知道如何真正关闭校准吗?这不是野外生存工具。
【问题讨论】:
标签: ios cocoa-touch core-location