You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the -locationManagerDidChangeAuthorization: callback and checking authorizationStatus first.
In:
+(INTULocationServicesState)locationServicesState
{
if ([CLLocationManager locationServicesEnabled]== NO){return INTULocationServicesStateDisabled;
}else if ([CLLocationManager authorizationStatus]== kCLAuthorizationStatusNotDetermined){return INTULocationServicesStateNotDetermined;
}else if ([CLLocationManager authorizationStatus]== kCLAuthorizationStatusDenied){return INTULocationServicesStateDenied;
}else if ([CLLocationManager authorizationStatus]== kCLAuthorizationStatusRestricted){return INTULocationServicesStateRestricted;
}return INTULocationServicesStateAvailable;
}
The text was updated successfully, but these errors were encountered:
Got the following error in Xcode console:
In:
The text was updated successfully, but these errors were encountered: