【发布时间】:2015-11-06 06:36:41
【问题描述】:
我在使用蜂窝数据时得到了错误的坐标,但是当我使用 wifi 时得到的是正确的坐标。我正在使用 CLLocationManager 获取坐标。我从一个月开始罢工。提前非常感谢。
self.locationManagerForCheckIn=[[CLLocationManager alloc] init];
self.locationManagerForCheckIn.delegate = self;
self.locationManagerForCheckIn.distanceFilter = kCLDistanceFilterNone;
self.locationManagerForCheckIn.desiredAccuracy = kCLLocationAccuracyBest;
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0)
[self.locationManagerForCheckIn requestWhenInUseAuthorization];
[self.locationManagerForCheckIn startUpdatingLocation];
【问题讨论】:
标签: ios objective-c iphone