我有3个viewController,名为firstController,secondController和thirdController。 我的逻辑是firstController.presentViewController(secondController),然后secondController.presentViewController(thirdController),并通过UIApplication.shareApplication()的设置RootViewController的。keywindow!.rootViewController = firstController ...iOS更改rootViewController
但是当我设置firstController为当第三控制器使用thirdController.modalTransitionStyle = UIModalTransitionStyle.CrossDissolve将第二控制器的viewController呈现给第三控制器时,第一控制器将在动画期间显示。
我可以不使用rootViewController吗?
感谢您的评论,但secondController和thirdController都有一个按钮来解除他们自己。 – away