//检测设备是否支持定位
+ (BOOL)locationEnable
{
return [CLLocationManager locationServicesEnabled];
}
//检查应用是否支持定位
- (BOOL) appLocationEnable {
return [CLLocationManager authorizationStatus]==kCLAuthorizationStatusAuthorized;
}
//检测设备是否支持定位
+ (BOOL)locationEnable
{
return [CLLocationManager locationServicesEnabled];
}
//检查应用是否支持定位
- (BOOL) appLocationEnable {
return [CLLocationManager authorizationStatus]==kCLAuthorizationStatusAuthorized;
}