iOS 控制器回到根视图

UIViewController *rootVC = self.presentingViewController;

while (rootVC.presentingViewController) {

       rootVC = rootVC.presentingViewController;

}

[rootVC dismissViewControllerAnimated:YES completion:nil];

你可能感兴趣的:(iOS 控制器回到根视图)