swift storyboard 跳转的2 种方式

1 presentViewController

        let personalViewController = GET_SB("Personal").instantiateViewControllerWithIdentifier("PersonalNavigationController")
        self.presentViewController(personalViewController, animated: true, completion: nil)

 

2 pushViewController

        let personalViewController = GET_SB("Personal").instantiateViewControllerWithIdentifier("PersonalNavigationController")
        self.presentViewController(personalViewController, animated: true, completion: nil)

 

 

GET_SB :

func GET_SB (sbName : String) -> UIStoryboard {
    return UIStoryboard(name: sbName, bundle: NSBundle.mainBundle())
}

 

posted @ 2016-02-17 09:22  Rui.peng  阅读(499)  评论(0编辑  收藏  举报