iOS dissmiss多级

UIViewController *rootVC = self.presentingViewController; 
while (rootVC.presentingViewController) { 
    rootVC = rootVC.presentingViewController; 
} 
[rootVC dismissViewControllerAnimated:YES completion:nil];

多级返回,适用于A->B  B->C    C直接返回A

猜你喜欢

转载自blog.csdn.net/bitcser/article/details/90901510
ios