我试过这样做。
let vc = AdminInfo() as UIViewController
self.navigationController?.pushViewController(vc, animated: true)
从Nib你可以这样做,如下所示, 在我的例子中,"MusicCategoryVC"是我的ViewController。
let nextvc = MusicCategoryVC(nibName: "MusicCategory", bundle: nil)
navigationController?.pushViewController(nextvc, animated: true)