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:^{

}];

上一篇下一篇

猜你喜欢

热点阅读