踩的坑记录一下,搜了好多地方都没有搜到
1. CLLocationManager类
定位新增属性字段:CLAccuracyAuthorization
用于判定用户开启的定位方案
typedef NS_ENUM(NSInteger, CLAccuracyAuthorization) {
// This application has the user's permission to receive accurate location information.
// 这个是精准定位
CLAccuracyAuthorizationFullAccuracy,
// The user has chosen to grant this application access to location information with reduced accuracy.
// Region monitoring and beacon ranging are not available to the appli