當UINavigationController與UITabBarController用relation segue連接時(UINavigationController作爲根),運行會提示:
Two-stage rotation animation is deprecate.This application should use the smoother single-stage animation.
解決辦法是:
UINavigationController不應該作爲UITabBarController的根來關聯,而應該作爲UITabBarController的子ViewController的根關聯(而UINavigationController的根是UITabBarController)。假設UITabBarController有兩個子ViewController,那麼按住Ctrl鍵連線的方式應該是:
-------------------------
UITabBarController
->
第一個UINavigationController
->
第一個UIViewController
-------------------------
UITabBarController
->
第二個UINavigationcontroller
->
第二個UIViewController
-------------------------
也就是說有多少個tab,就要創建相應數量的UINavigationcontroller。
所有的連接方式都要選擇relationship segue - root view controller