IOS8以后,需要在info.plist文件里面加NSLocationWhenInUseDescription或NSLocationAlwaysUsageDescription。
manger = [[CLLocationManager alloc] init];
manger.delegate = self;
manger.desiredAccuracy = kCLLocationAccuracyBest;
manger.distanceFilter = 100.0f;
[manger requestAlwaysAuthorization];
[manger startUpdatingLocation];

3724

被折叠的 条评论
为什么被折叠?



