在我的应用程序,如果用户不能访问自己的当前位置,我可以按以下方法如何第二次询问用户允许访问当前位置的权限?
- (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,如果用户希望应用程序访问他/她的位置,他/她如何设置应用程序以使用其当前位置?
正在删除应用程序并下载另一个唯一的解决方案?
大家都对我的回答downvote ...只是检查这个你会得到我想要的东西:
在IOS 7说... http:// stackoverflow。COM /问题/ 14984168 /如何对解决-A-核心位置的逻辑功能于IOS-应用程序/ 14984754#14984754 – Rajneesh071 2013-03-26 07:44:59