我正在关闭一个模态视图控制器,然后立即呈现另一个模态视图控制器,但是我目前不能在它们两个上使用动画,只有第二个。
无论如何要延迟该过程以便用户体验两种动画吗?
下面的代码目前有效,但用户显然只能看到第二个动画:
// First one configure
detailViewController.modalPresentationStyle = UIModalPresentationFullScreen;
detailViewController.modalTransitionStyle = UIModalTransitionStylePartialCurl;
[self presentModalViewController:detailViewController animated:YES];
//Dismiss first one
[self dismissModalViewControllerAnimated:NO];
//Immediately configure and show second one
navController.modalPresentationStyle = UIModalPresentationFormSheet;
navController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:navController animated:YES];