swift中storyborad跳转

前端之家收集整理的这篇文章主要介绍了swift中storyborad跳转前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

swift中storyborad跳转

by 伍雪颖

  1. let identifier = "viewController"
  2. let storyboard = UIStoryboard(name: identifier,bundle: nil)
  3. let controller = storyboard.instantiateViewControllerWithIdentifier(identifier)
  4. as UIViewController!
  5. self.navigationController?.pushViewController(controller,animated: true)

猜你在找的Swift相关文章