第一个界面push到第二个界面,第二个界面push到第三个界面,第四个界面push到第五个界面,如果想pop到第二个界面怎么办?
[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:([self.navigationController.viewControllers count] -3)] animated:YES];
第一个界面push到第二个界面,第二个界面push到第三个界面,第四个界面push到第五个界面,如果想pop到第二个界面怎么办?
[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:([self.navigationController.viewControllers count] -3)] animated:YES];
转载于:https://my.oschina.net/u/2258005/blog/343893