相关疑难解决方法(0)

用动画交换rootViewController?

我试图用标签栏交换到另一个根视图控制器; 通过app委托,我想添加过渡动画.默认情况下,它只显示没有任何动画的视图.

let tabBar = self.instantiateViewController(storyBoard: "Main", viewControllerID: "MainTabbar")
let appDelegate = UIApplication.shared.delegate as! AppDelegate
appDelegate.window = UIWindow(frame: UIScreen.main.bounds)
appDelegate.window?.rootViewController = tabBar
appDelegate.window?.makeKeyAndVisible()
Run Code Online (Sandbox Code Playgroud)

这就是我交换到另一个rootview控制器的方式.

xcode uiviewanimation rootview swift swift3

54
推荐指数
6
解决办法
2万
查看次数

标签 统计

rootview ×1

swift ×1

swift3 ×1

uiviewanimation ×1

xcode ×1