#import <CoreLocation/CoreLocation.h>
if ([CLLocationManager locationServicesEnabled] == YES)
{
NSLog(@"定位服务已启用");
}
else
{
NSLog(@"请开启定位服务");
}
#import <CoreLocation/CoreLocation.h>
if ([CLLocationManager locationServicesEnabled] == YES)
{
NSLog(@"定位服务已启用");
}
else
{
NSLog(@"请开启定位服务");
}
本文标题:IOS判断定位服务是否开启
本文链接:https://www.haomeiwen.com/subject/ghfdtqtx.html
网友评论