iPhone Objective C - wait_fences:未能收到回复:10004003
我有这个奇怪的错误:wait_fences:无法接收回复:这段代码中的10004003:
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
if (buttonIndex==0) {
[self showActivityViewer];
[NSTimer scheduledTimerWithTimeInterval:6.0 target:self selector:@selector(hideActivityViewer) userInfo:nil repeats:NO];
[self downloadControlAndUpdatePoi];
[self downloadControlAndUpdateItinerari];
[self downloadControlAndUpdateEventi];
[self downloadControlAndUpdateArtisti];
NSLog(@"AGGIORNA");
} else {
NSLog(@"NON AGGIORNARE");
return;
}
}
为什么?可能的错误或问题在哪里?
i have this strange error : wait_fences: failed to receive reply: 10004003 in this code :
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
if (buttonIndex==0) {
[self showActivityViewer];
[NSTimer scheduledTimerWithTimeInterval:6.0 target:self selector:@selector(hideActivityViewer) userInfo:nil repeats:NO];
[self downloadControlAndUpdatePoi];
[self downloadControlAndUpdateItinerari];
[self downloadControlAndUpdateEventi];
[self downloadControlAndUpdateArtisti];
NSLog(@"AGGIORNA");
} else {
NSLog(@"NON AGGIORNARE");
return;
}
}
Why?? Where could be the possibile error or problem??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您在警报视图实际关闭之前尝试推送/呈现另一个视图控制器,就会发生这种情况。当我在 iOS 4 中运行我的一个应用程序时发生了这种情况。我不知道此问题的确切原因,但您可以通过将所有代码从 clickedButtonAtIndex: 方法移动到 来解决此问题didDismissWithButtonIndex:方法。
This happens if you try to push/present another view controller before the alert view is actually dismissed. This happened when I ran one of my apps in iOS 4. I don't know the exact reason for this problem, but you can resolve this by moving all the code from clickedButtonAtIndex: method to didDismissWithButtonIndex: method.