📌  相关文章
📜  快速弹出到特定视图控制器 - Swift 代码示例

📅  最后修改于: 2022-03-11 15:01:00.639000             🧑  作者: Mango

代码示例1
let viewControllers: [UIViewController] = self.navigationController!.viewControllers
for aViewController in viewControllers {
    if aViewController is YourViewController {
        self.navigationController!.popToViewController(aViewController, animated: true)
    }
}