0

I have an app created on SWRevealViewController on iPhone but now Client wants to create iPad app. And all Viewcontroller created using XIBs.

He wants UISplitViewController like UI(Landscape Mode) which is difficult to convert whole app.

When I run app on iPad everything works Perfect on SWRevealViewController.

but I want to implement UI Like UISplitViewController.

Is it possible to convert SWRevealViewController To UISplitViewController without changing Navigation code.

Is there any feature available in SWRevealViewController to handle UI as UISplitViewController ?

Any help Will be appreciated

Maulik shah
  • 1,664
  • 1
  • 19
  • 45

1 Answers1

0

Just trigger the UIBarButton while launch the particular viewController

[barButtonItem.target performSelector:barButtonItem.action];

-(void)viewDidLoad
{
   here you are adding the reveal view controller.

    SWRevealViewController *revealViewController = self.revealViewController;
if (revealViewController) {
    [self.sidebarButton setTarget: self.revealViewController];
    [self.sidebarButton setAction: @selector(revealToggle:)];
    [self.view addGestureRecognizer: self.revealViewController.panGestureRecognizer];
}
   ->here hide the uibarbutton so that nobody know there is menu.
   ->then programatically trigger the uibarbutton click event as i mentioned above.
   ->then do enable of you uibarbutton =false ;//for static purpose 
}
Kishore Kumar
  • 4,265
  • 3
  • 26
  • 47