iOS dismiss到前几个界面
2017-05-22 本文已影响124人
木_风
inti =0;
UIViewController*vc =self;
while(vc.presentingViewController!=nil) {
i++;
if(i==4) {
break;
}
vc = vc.presentingViewController;
}
[vcdismissViewControllerAnimated:YEScompletion:^{
}];
inti =0;
UIViewController*vc =self;
while(vc.presentingViewController!=nil) {
i++;
if(i==4) {
break;
}
vc = vc.presentingViewController;
}
[vcdismissViewControllerAnimated:YEScompletion:^{
}];