iPhone Objective C - wait_fences: failed to receiv

2019-02-15 13:28发布

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??

1条回答
Root(大扎)
2楼-- · 2019-02-15 13:41

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.

查看更多
登录 后发表回答