iOS presentViewController的时候有卡顿或延迟

我在应用里边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
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3