这个功能其实是我写的敲代码时遇到的一个bug 在这里把他先记下来 留着以后用
只需要在前一个控制器这样写:
var vcArr:[[UIViewController]] =
[
[TagManagerController(),GoodManagerController()],
[OrderListController()],
[ReceiptsFormController()],
[UIViewController()],
[UIViewController()]
]
self.navigationController?.pushViewController(vcArr[indexPath.section][indexPath.row], animated: true)