草庐IT

UINavigationContoller

全部标签

ios - 是否可以在 UINavigationContoller 堆栈上推送 2 个单独的 UIViewController 实例

我有一个具有多种用途的通用UIViewController。它可以用6种不同的方式实例化,因为它被设计为非常通用。让我们将这个多用途ViewController称为MultiPurposeViewController。Type1VC=MultiPurposeViewController()//initiateddifferentlyself.navigationController.push(Type1VC)Type1VC内部:Type2VC=MultiPurposeViewController()//initiateddifferentlythanbeforeself.navigat