iOS presentViewController的时候有卡顿或延迟
时间:2015-01-12 11:35:31
收藏:0
阅读:490
我在应用里边present一个很简单的Controller感觉总有个零点几秒的延迟,有的时候更严重,点一次根本没有跳转,然后随便再点一下才会跳,在网上搜了一下,找到一个方法可以解决这种问题:
dispatch_async(dispatch_get_main_queue(), ^{
MessagePushSetViewController * vc = [[MessagePushSetViewControlleralloc] init];
[selfpresentViewController:vc animated:YEScompletion:nil];
[vcrelease];
});
原文:http://blog.csdn.net/miaocuilin/article/details/42639451
评论(0)