【发布时间】:2011-05-13 14:47:47
【问题描述】:
我正在开发一个应用程序,当用户第一次开始使用它时会弹出 UIAlert 以询问他们是否要使用当前位置。这发生在主控制器内。但是,使用 UIAlert 时出现以下错误:
wait_fences: failed to receive reply: 10004003
我调试了它,然后用谷歌搜索了一下。我没有使用文本区域或键盘输入,所以我不必辞去第一响应者的职务。但是,我仍然无法弄清楚为什么会收到此错误。它仅在我添加 UIAlert 时出现。
MainController.m
- (void)viewDidLoad {
UIAlertView *mainAlert = [[UIAlertView alloc]
initWithTitle:@"Location"
message:@"Do you wish to use your current location?"
delegate:self
cancelButtonTitle:nil
otherButtonTitles:@"No Thanks", @"Sure!", nil];
[mainAlert show];
[mainAlert release];
[super viewDidLoad];
}
头文件是这样构造的:
@interface MainController : UIViewController
<CLLocationManagerDelegate,
MKReverseGeocoderDelegate, UIAlertViewDelegate>
【问题讨论】:
标签: iphone uialertview