int i =0;
UIViewController *vc =self;
while(vc.presentingViewController!=nil) {
i++;
if(i==3) {
break;
}
vc = vc.presentingViewController;
}
[vc dismissViewControllerAnimated:YES completion:^{
}];
int i =0;
UIViewController *vc =self;
while(vc.presentingViewController!=nil) {
i++;
if(i==3) {
break;
}
vc = vc.presentingViewController;
}
[vc dismissViewControllerAnimated:YES completion:^{
}];
本文标题:iOS dismiss到前两级页面
本文链接:https://www.haomeiwen.com/subject/kwewortx.html
网友评论