當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
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。