判断gps是否开启

+ (BOOL)locationServicesEnabled { if (([CLLocationManager locationServicesEnabled]) && ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusAuthorized)) {	

NSLog(@"手机gps定位已经开启");

return YES; } else {

   NSLog(@"手机gps定位未开启");

return NO; } }

你可能感兴趣的:(判断gps是否开启)