switch views using a button, going to a table view, iphone
Posted
by Jaime Rae
on Stack Overflow
See other posts from Stack Overflow
or by Jaime Rae
Published on 2010-05-26T00:03:27Z
Indexed on
2010/05/26
0:11 UTC
Read the original article
Hit count: 569
My program has 4 buttons and each button calls a different table view. That works fine, but my problem is, the view controller I'm using brings up a table view that covers up my navigation bar and my tab bar. I need to replace that coding with something that will bring up a table and not cover up my nav and tab bars. Here is the coding I'm using: -(IBAction)buttonNorthWest {
NorthWestViewController *nwController = [[NorthWestViewController alloc] initWithNibName:@"NorthWestView" bundle:nil];
self.nwViewController = nwController;
[self.view insertSubview:nwViewController.view atIndex:0];
[self presentModalViewController:nwViewController animated:YES];
[nwController release];
}
The [self presentModalViewController....] is the problem. Does anyone know how I can replace that code with something that keeps my nav and tab bars?
Thanks, Jaime
© Stack Overflow or respective owner