在我的應用程序,如果用戶不能訪問自己的當前位置,我可以按以下方法如何第二次詢問用戶允許訪問當前位置的權限?
- (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