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

  

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

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

  

posted on 2019-05-29 11:19  懂事长qingzZ  阅读(296)  评论(0)    收藏  举报