swift 加载 storyboard 里的UIViewController

let storyBoard:UIStoryboard! = UIStoryboard(name: "Main", bundle: nil)

let deskVC:DeskViewController! = storyboard!.instantiateViewControllerWithIdentifier("DeskViewController") as DeskViewController

        self.navigationController?.pushViewController(deskVC, animated: true)

posted @ 2015-03-11 10:36  shidaying  阅读(1739)  评论(0编辑  收藏  举报