码迷,mamicode.com
首页 > 其他好文 > 详细

not calling locationManager:didUpdateLocations:

时间:2015-05-03 02:00:22      阅读:188      评论:0      收藏:0      [点我收藏+]

标签:

技术分享Just add this in info.plist

NSLocationAlwaysUsageDescription --- I need Location

NSLocationWhenInUseUsageDescription --- I need Location

privacy - location usage description --- I need Location

  locationManager = [[CLLocationManager alloc] init];
  locationManager.delegate=self;
  locationManager.desiredAccuracy=kCLLocationAccuracyBest;
  locationManager.distanceFilter=kCLDistanceFilterNone;
  [locationManager requestWhenInUseAuthorization];
  [locationManager startMonitoringSignificantLocationChanges];
  [locationManager startUpdatingLocation];

Now it will call your didUpdateToLocation definitely.

for more details click here


not calling locationManager:didUpdateLocations:

标签:

原文地址:http://my.oschina.net/u/193027/blog/409183

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!