ios 8 地图定位

在xcode6在 苹果公司定位方法改变地图,谁也无法使用

错误说明:Trying to start MapKit location updates without prompting for location authorization. Must call -[CLLocationManager requestWhenInUseAuthorization] or -[CLLocationManager requestAlwaysAuthorization] first.

直接上解决的方法:

在Supporting Files下得info.plis里面加入NSLocationAlwaysUsageDescription 和 NSLocationWhenInUseDescription 两个String字段。value能够为空,也能够设置YES,只是我得问题还是不能解决,终于还是找到得了问题所在。就是info.plist中还须要包括Supported interface orientations 这个Array场。

然后执行它来捕捉

版权声明:本文博客原创文章,博客,未经同意,不得转载。

原文地址:https://www.cnblogs.com/mengfanrong/p/4666212.html