我能够通过为模态视图创建不同的细节来完成我想要的功能。关于我的界面还有一些额外的东西,我不想尝试解释,但Screen 3现在取代了Screen 2,而没有模态轮廓。后来,当我调用屏幕上的3开卷SEGUE,它解开使用push SEGUE从屏幕1.
这里是我的屏幕2和屏幕3之间使用的自定义SEGUE:
-(void)perform {
UIViewController *sourceViewController = (UIViewController*)[self sourceViewController];
UIViewController *destinationController = (UIViewController*)[self destinationViewController];
UINavigationController *navigationController = sourceViewController.navigationController;
// Pop to root view controller (not animated) before pushing
[navigationController popToRootViewControllerAnimated:NO];
[navigationController pushViewController:destinationController animated:NO];
}
如果你呈现一个模式视图控制器,它不再是导航控制器层次结构的一部分,因此无法获得您要查找的动画。此外,这将违反人机界面设计指南。随它去。 – duci9y