Hello!
This is a second version of my original post because I understood a few thing (confusion between navigation controller and tab bar items)!
Ok so my problem is to create a table view as a tab bar item, and when I click on an item of the table, a detailled view appears, but keeps the tab bar at the bottom of the screen!
To do it, I have implemented a FirstViewController which is a UITableViewController, and a DetailViewController which is also a table view controller.
In IB, I have selected the first item and associated the FirstViewController nib file and I have implemented the didSelectRowAtIndexPath like below :
Code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
if(detailOfferController == nil)
detailOfferController = [[DetailOfferViewController alloc] initWithNibName:@"OfferDetailView" bundle:[NSBundle mainBundle]];
Offer *anOffer = [assuranceApplicationDelegate.offers objectAtIndex:indexPath.row];
detailOfferController.anOffer = anOffer;
[self.parentViewController presentModalViewController:detailOfferController animated:YES];
}
By this method, I can see the detailled view but it takes the whole screen. How can I keep the tab bar on the bottom and display the detailled view instead the firstView.
Thank you for your help with that, and sorry my english (I'm french).