CLAuthorizationStatus status = [CLLocationManager authorizationStatus];
if (kCLAuthorizationStatusDenied == status || kCLAuthorizationStatusRestricted == status) {
ShowToastWithText(@"打开位置服务,将为您提供更好的服务");
}else{
NSLog(@"打开定位服务");
}
CLAuthorizationStatus status = [CLLocationManager authorizationStatus];
if (kCLAuthorizationStatusDenied == status || kCLAuthorizationStatusRestricted == status) {
ShowToastWithText(@"打开位置服务,将为您提供更好的服务");
}else{
NSLog(@"打开定位服务");
}