iOS7 之后 presentviewcontroller 延迟的解决方案

时间:2015-12-18 13:03:43   收藏:0   阅读:207

http://stackoverflow.com/questions/20087408/lag-between-viewwillappear-and-viewdidappear

两种解决方案 :

1. 
dispatch_async(dispatch_get_main_queue(), ^{ [presentingViewController presentViewController:VC animated:YES completion:^{ }]; });

2.

[self performSelectorOnMainThread:@selector(methodName) withObject:nil waitUntilDone:NO];

// methodName方法只是一个空方法就行

原文:http://www.cnblogs.com/houtou118/p/5056654.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!