queston related to popToViewController

Posted by user217572 on Stack Overflow See other posts from Stack Overflow or by user217572
Published on 2010-03-18T10:29:48Z Indexed on 2010/03/18 10:31 UTC
Read the original article Hit count: 513

Filed under:

My Secondview is BController *bview. now in this view there is 1 back button

on click of that back button -(IBAction)done:(id)sender { AController *aview= [[AController alloc] initWithNibName:@"AController" bundle:[NSBundle mainBundle]];

NSArray *array = [self.navigationController popToViewController: aview animated:YES];

}

AController *aview is nothing but my first view or u can say first view

but in click of back button i'm getting exception

** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Tried to pop to a view controller that doesn't exist.' 2010-03-18 15:53:05.948 IChitMe[5072:207] Stack: ( 820145437, 837578260, 819694387, 814928571, 862794500, 862794216, 54911, 819902607, 861951876, 862404412, 819902607, 861951876, 861951724, 861951668, 861950732, 861953932, 861948160, 861945748, 861927312, 861925524, 858687888, 819893547, 819891231, 858682228, 861592624, 861585968, 10069, 9964 ) terminate called after throwing an instance of 'NSException'

© Stack Overflow or respective owner

Related posts about iphone