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上調用.blog

相關文章
相關標籤/搜索