我有3个名为firstController,secondController和thirdController的viewControllers。我的逻辑是firstController.presentViewController(secondController),,然后是secondController.presentViewController(thirdController),,然后是set a rootViewController by UIApplication.shareApplication().keywindow!.rootViewController = firstController...
但是,当我将firstController设置为rootViewController时,当使用thirdController.modalTransitionStyle = UIModalTransitionStyle.CrossDissolve从secondController向thirdController呈现viewController时,firstController将在动画过程中显示。
我可以不像这样使用rootViewController吗?
发布于 2016-03-28 12:40:35
我认为你应该有一个级别的rootViewController来表示所有的东西,也就是说,只有firstController应该调用presentViewController。
https://stackoverflow.com/questions/36255679
复制相似问题