iOS presentViewController的时候有卡顿或延迟

时间:2015-01-12 11:36:57   收藏:0   阅读:2077

我在应用里边present一个很简单的Controller感觉总有个零点几秒的延迟,有的时候更严重,点一次根本没有跳转,然后随便再点一下才会跳,在网上搜了一下,找到一个方法可以解决这种问题:

dispatch_async(dispatch_get_main_queue(), ^{

                MessagePushSetViewController * vc = [[MessagePushSetViewControlleralloc] init];

                [selfpresentViewController:vc animated:YEScompletion:nil];

                [vcrelease];

            });


评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!