warning : wait_fences: failed to receive reply: 10004003

旧街凉风 提交于 2019-12-25 18:52:16

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!