iPhone Objective C - wait_fences:未能收到回复:10004003 [英] iPhone Objective C - wait_fences: failed to receive reply: 10004003
问题描述
我有这个奇怪的错误:wait_fences:在此代码中未能收到回复:10004003:
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??
推荐答案
如果您尝试推送/显示另一个视图控制器会发生这种情况在警报视图实际被解除之前。当我在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.
这篇关于iPhone Objective C - wait_fences:未能收到回复:10004003的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!