1
2
移除一个
self.navigationController?.viewControllers.removeAll(where: {$0.classForCoder == JYRetrieveVerificationCodeController.self})

  

移除多个:如果用remove 必须下面这样写

1
2
self.navigationController?.viewControllers.removeAll(where: {$0.classForCoder == JYShopReviewRejectedController.self || $0.classForCoder == JYShopCertificationController.self ||
    $0.classForCoder == JYShopReviewSwitchController.self })

  

posted on   懂事长qingzZ  阅读(284)  评论(0编辑  收藏  举报
努力加载评论中...

点击右上角即可分享
微信分享提示