I have a UISplitViewController
. Inside this UIViewController
there is a master UIViewController
and a detail UIViewController
.
On the master UIViewController
I have a table view and when a item is selected I want push a new UIViewController
inside this master view controller without change the detail UIViewController
.
But, doing this piece of code:
[self.navigationController pushViewController:myNewViewController animated:YES];
The new UIViewController
is pushed inside of theUISplitViewController
and I only want to show the new view controller on the master UIViewController
.
How can I push a view controller inside this master UIViewController
without change the detail UIViewController
?