问题
I am getting this warning sometimes " wait_fences: failed to receive reply: 10004003 ", do not know why this is coming,
I do not have viewdidiappear method in my code, i have a UIAlert in my view, the code is
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Start" message:[NSString stringWithFormat:@"Hi %@,",[user objectAtIndex:0] ] delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil];
[alert show];
[alert release];
回答1:
this is due to UI actions on a view controller on which you are not currently,i.e. the screen of which you are accessing UI, not visible currently.
回答2:
if you read my answer in the comment you would understand, but what you need to do is add the above code in the -viewDidAppear
method and make sure you add [super viewDidAppear:YES];
and if you want to keep it in your init method you'll have to add a delay like so[self performSelector:@selector(next) withObject:nil afterDelay:0.5];
来源:https://stackoverflow.com/questions/10892700/warning-wait-fences-failed-to-receive-reply-10004003