【发布时间】:2014-01-29 08:50:47
【问题描述】:
我正在创建基于位置的应用程序,我正在实现 CLLocationManager 的委托方法,
我知道有两种方法来启动和停止定位方法是:
[locationManger startUpdatingLocation];
[locationManger stopUpdatingLocation];
但我想检查位置管理器是否已经在运行?有没有类似的方法,
isLocationManagerRunning
如果 locationmanager 没有运行,我必须启动它。
我不想将 BOOL 放在委托方法中进行检查。
【问题讨论】:
标签: ios iphone objective-c core-location cllocationmanager