@implementation UIViewController (UIViewControllerExt)

- (void)popViewController:(NSString *)controllerStr
{
    for (UIViewController *vc in self.navigationController.viewControllers) {
        if ([vc isKindOfClass:[NSClassFromString(controllerStr) class]]) {
            [self.navigationController popToViewController:vc animated:YES];
            
        }
    }
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-03-05
  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-07
  • 2021-10-10
  • 2022-12-23
  • 2022-12-23
  • 2021-10-24
相关资源
相似解决方案