Can i pop to Specific ViewController?

Posted by Ankit Vyas on Stack Overflow See other posts from Stack Overflow or by Ankit Vyas
Published on 2010-06-12T05:05:25Z Indexed on 2010/06/12 5:12 UTC
Read the original article Hit count: 336

Filed under:

Hello!I am using Navigation Based Application.I push First ViewController to Second ViewController and From Second ViewController to Third ViewController Now I want to Pop From Third ViewController to First ViewController.I am Performing This task using the Below Code but i application get's Terminate.Please any body give me some proper Guidelines.I can't use pop to RootViewController because it's Different ViewController.Thanks in Advance...

In Third ViewControler i have Written this:

FirstViewCtr *x=[[FirstViewCtr alloc] initWithNibName:@"FirstViewCtr" bundle:nil];
[self.navigationController popToViewController:x animated:NO];

© Stack Overflow or respective owner

Related posts about iphone