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)
- 上一篇 »swift调用相机和相册
- 下一篇 »Swift UIView常用方法