Using iOS I Have 15 ViewControllers now I want to pop from one ViewController to another View Controller.
I am using this code:
SecondViewController *Sec
Try like this
MyTableViewController *vc = [[MyTableViewController alloc] init]; NSMutableArray *controllers = [NSMutableArray arrayWithArray:self.navigationController.viewControllers]; [controllers removeLastObject]; [controllers addObject:vc];