IOS8 地图设置

来源:互联网 发布:pdf编辑软件手机 编辑:程序博客网 时间:2024/06/09 04:58
 Trying to start MapKit location updates without prompting for location authorization. Must call -[CLLocationManager requestWhenInUseAuthorization] or -[CLLocationManager requestAlwaysAuthorization] first.
解决方法分两步:
首先, 在Info.plist文件里添加NSLocationWhenInUseUsageDescription 或 NSLocationAlwaysUsageDescription ,根据你的需要,添加两者或其中的一个.这两个key都是String类型的,value可以为空.两个key的区别就不多说了
0 0
原创粉丝点击