Saint-Gobain Interview Question

How to pop two viewController at a time

Interview Answers

Anonymous

Jun 3, 2015

NSArray *array=self.navigationController.viewControllers; [self.navigationController popToViewController:[array objectAtIndex:array.count-2] animated:yes]

7

Anonymous

Dec 10, 2013

Just use popToRootViewController to go to first view controller

4

Anonymous

Jul 1, 2013

Geting array of pushed view controller and pass it as a para meter to popview controller function

2