iOS7,8 presentViewController 执行慢
时间:2015-06-29 23:44:18
收藏:0
阅读:365
解决办法:
1, 使用GCD用主线程跳转
dispatch_async(dispatch_get_main_queue(), ^{ //跳转代码 ... });
2, 召唤主线程, 使用performSelector在主线程随便执行一个方法
[self performSelector:@selector(anyMethod) onThread:[NSThread mainThread] withObject:nil waitUntilDone:NO];
原文:http://www.cnblogs.com/duwei/p/4608919.html
评论(0)