By default we can show/hide the MasterViewController of a UISplitViewController by using a left/right gesture which can be disabled by using
if ([splitViewController respondsToSelector:@selector(setPresentsWithGesture:)]) {
[splitViewController setPresentsWithGesture:NO];
}
now, I added a UIButtonItem to my MasterViewController and I want to control that behavior with it, how to do that?