Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPad SplitViewController with menu in portrait mode like settings app

I would like obtain a SplitView on my iPad application with my left menu in a portrait orientation such as iPad settings. For now in portrait orientation I have a content view in full screen and I have a button at NavigationBar which includes a popover with my left menu.

like image 899
Smalldevil Avatar asked Apr 13 '10 17:04

Smalldevil


1 Answers

This is the magic you need:

This method is in UISplitViewControllerDelegate, available on iOS 5.0

- (BOOL)splitViewController: (UISplitViewController*)svc shouldHideViewController:(UIViewController *)vc inOrientation:(UIInterfaceOrientation)orientation  __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_5_0); {     return NO; } 
like image 158
CornPuff Avatar answered Nov 11 '22 11:11

CornPuff