Iphone CLLocationManager不调用didEnterRegion,但为区域注册跟踪
我真的很犹豫是否发布关于这个主题的第四个问题,但根据之前的答案对所有问题进行了三次检查,结果仍然很糟糕 问题:CLLocationManager在iOS6中未调用didEnterRegion 安装程序:iOS6 以下是与CLLocationManager相关的所有函数的代码 myMapViewController.hIphone CLLocationManager不调用didEnterRegion,但为区域注册跟踪,iphone,ios,mapkit,cllocationmanager,Iphone,Ios,Mapkit,Cllocationmanager,我真的很犹豫是否发布关于这个主题的第四个问题,但根据之前的答案对所有问题进行了三次检查,结果仍然很糟糕 问题:CLLocationManager在iOS6中未调用didEnterRegion 安装程序:iOS6 以下是与CLLocationManager相关的所有函数的代码 myMapViewController.h @interface FirstViewController : UIViewController <UIApplicationDelegate,CLLocationMana
@interface FirstViewController : UIViewController <UIApplicationDelegate,CLLocationManagerDelegate, MKMapViewDelegate, UISearchBarDelegate,RKObjectLoaderDelegate >
{
/* variables */
}
@property (strong, nonatomic) CLLocationManager *locationManager;
应用程序运行时没有警告,以下是日志:
2012-12-02 19:31:41.449 myApp[5695:c07] Setting region with latitude 37.785690
2012-12-02 19:31:41.506 myApp[5695:c07] Monitoring region with latitude 37.785690
你进入这个地区了吗?您的问题实际上并不是说您正在将设备移入或移出正在监视的区域,或者通过Xcode模拟移动。您没有忘记将[locationManager startUpdatingLocation] 您的问题是未调用
didStartMonitoringForRegion
,但日志消息显示已调用。抱歉,这是一个输入错误,已修复。您如何检查此问题?请尝试模拟器,注册一个区域,然后更改到另一个模拟位置,然后返回到旧位置。
2012-12-02 19:31:41.449 myApp[5695:c07] Setting region with latitude 37.785690
2012-12-02 19:31:41.506 myApp[5695:c07] Monitoring region with latitude 37.785690