首页 > 移动平台 > 详细

ios8 定位无效

时间:2015-03-24 14:56:37      阅读:143      评论:0      收藏:0      [点我收藏+]

IOS8以后,需要在info.plist文件里面加NSLocationWhenInUseDescription或NSLocationAlwaysUsageDescription。

    manger = [[CLLocationManager alloc] init];

    manger.delegate = self;

    manger.desiredAccuracy = kCLLocationAccuracyBest;

    manger.distanceFilter = 100.0f;

    [manger requestAlwaysAuthorization];

    [manger startUpdatingLocation];

技术分享


ios8 定位无效

原文:http://blog.csdn.net/sunyuanyang625/article/details/44590289

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!