I'm building my first basic tabbed, application with one of the views as a navigation controller that will display a view controller.
I'm running into an issue at the point the user selects a category from the first tableview as shown in the screenshot: http://www.cl.ly/7YOF
When another instance of the tableviewcontroller is loaded and pushed onto the stack of the navigationcontroller, the table is obstructed by the title bar: http://www.cl.ly/7ZRz
The table view select logic is below:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { KHCategory *selectedItem = [categoryArray objectAtIndex:indexPath.row]; if (selectedItem.categories.count > 0) { KHCategoryTableViewController *nextCategoryController = [[KHCategoryTableViewController alloc] init]; nextCategoryController.categoryArray = [[NSArray alloc] initWithArray:selectedItem.categories]; nextCategoryController.title = selectedItem.labelValue; [self.navigationController pushViewController:nextCategoryController animated:YES]; [nextCategoryController release]; } else { NSLog(@"show detail view"); } }
EDIT: I should be clear that an instance of KHCategoryTableViewController is the root of my NavigationController and the NavController is wired up to the first tab of a TabController.