标签:des style color io os ar for sp art
在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字段。然后运行就解决了
标签:des style color io os ar for sp art
原文地址:http://blog.csdn.net/littlefool5201314/article/details/39959489