【发布时间】:2016-06-26 07:11:05
【问题描述】:
我已经成功地关闭了一个视图控制器并展示了一个新的视图控制器,但是新的视图控制器会在一点延迟后出现。如何消除这种延迟?我当前的代码是:
UIViewController * vcb=self.presentingViewController;
[self dismissViewControllerAnimated:YES completion:^{
UIStoryboard * storyBoard=[UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];
ContactsViewController * VC=[storyBoard instantiateViewControllerWithIdentifier:@"contactsView"];
[vcb presentViewController:VC animated:YES completion:nil];
}];
【问题讨论】:
-
你可以在主线程中使用dispatch_async吗
标签: ios objective-c iphone uiviewcontroller