在我的应用程序中,如果不允许用户访问他们当前的位置,我可以通过以下方法收到该消息
- (void)locationManager:(CLLocationManager*)aManager didFailWithError:(NSError*)anError
{
switch([anError code])
{
case kCLErrorLocationUnknown:
break;
case kCLErrorDenied:
{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Access Denied" message:@"You didn't allow to access your current location" delegate:self cancelButtonTitle:@"Ok" otherButtonTitles:nil];
[alert show];
break;
}
}
}
如何第二次请求用户权限?
我搜索并得到答案 NO,如果用户希望应用程序访问他/她的位置,他/她如何设置应用程序以使用他们当前的位置?
删除应用程序并下载另一个应用程序是唯一的解决方案吗?