0

我有 3 个名为 firstController、secondController 和 thirdController 的 viewController。我的逻辑是 firstController.presentViewController(secondController),然后是 secondController.presentViewController(thirdController),然后通过 UIApplication.shareApplication().keywindow!.rootViewController = firstController 设置 rootViewController...

但是当我将 firstController 设置为 rootViewController 时,当使用 thirdController.modalTransitionStyle = UIModalTransitionStyle.CrossDissolve 将 viewController 从 secondController 呈现到 thirdController 时,firstController 将在动画期间显示。

我不应该像这样使用 rootViewController 吗?

4

1 回答 1

0

我认为您应该有一个级别的 rootViewController 来呈现所有内容,即只有 firstController 应该调用 presentViewController。

于 2016-03-28T04:40:35.003 回答