iOS7上的地图定位接口BUG

遇到个BUG,卡了好久,就是在iOS9上定位接口是正常的,但是在iOS7上就一直拿不到回调,但是看系统日志其实已经定位到了.总是在报一句not response,也没有具体函数名

昨天灵机一动,从delegate里找了个函数放上去,OK了.

- (void)locationManager:(CLLocationManager *)manager

    didUpdateToLocation:(CLLocation *)newLocation

           fromLocation:(CLLocation *)oldLocation

- (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations

 看看哪个在iOS9上会被调用,哪个在iOS7上调用.

原文地址:https://www.cnblogs.com/decwang/p/5065959.html