I have a split view app which I started with the master-detail template. The problem I'm having is that WHen I select a row from my master view and have a new view show in the detail view, the navigation controller is showing up and I don't want it to be there on the new view. The new detail view should just have a navigation bar that I've added to it with a button for an activity view controller. The button shows up under the nav bar for the navigation controller but my nav bar doesn't show up. The reason I don't want the navigation controller is because once a row in the master view is selected and the new detail view shows up, the back button has to be pressed in order to select another row from the master view. Basically, I'm just wanting to replace the detail view with a new one. How can I get this working like I want it?
NSMutableArray *details = [self.splitViewController.viewControllers mutableCopy]; [details replaceObjectAtIndex:1 withObject:webViewController]; [[self.splitViewController.viewControllers lastObject] pushViewController:details.lastObject animated:YES];
1 MB Views: 90