1

I want to add facebook like left sliding menu in only one screen in my application. I found lots of solutions on github but those all adds menu in all screen. I want it in just one screen.

thanks in advance

Hiren
  • 285
  • 1
  • 2
  • 13

2 Answers2

0

Use MFSlideMenu. You can set panMode to MFSideMenuPanModeNone disable slide in required viewController. See this

Durgaprasad
  • 1,910
  • 2
  • 25
  • 44
  • should we done it without applying RootViewController...Like self.window.rootviewcontroller=mainviewcontroller; here mainviewcontroller is MFSideMenuContainerViewController .... – Hiren Jun 13 '13 at 13:15
0

After using MFSideView

Indise SideMenuViewController.m in didSelectRowAtIndexPath method from tableview delegate allocate your view controller using

    <CLASS_NAME> *obj = [[[<CLASS_NAME> alloc] initWithNibName:@"<XIB_NAME>" bundle:nil] autorelease];

Bind this into array

NSArray <ARR_NAME> = [[[NSArray alloc] initWithObjects:obj,nil] autorelease];

refernce this into navigation controller

 UINavigationController *navigationController = self.menuContainerViewController.centerViewController;

[navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"header.png"] forBarMetrics:UIBarMetricsDefault];

NSArray *controllers = [NSArray arrayWithObject:[secArray objectAtIndex:indexPath.row]];

navigationController.viewControllers = controllers;

[self.menuContainerViewController setMenuState:MFSideMenuStateClosed];

This is the entire code for your problem !!

Enjoy Programming !!

Niru Mukund Shah
  • 4,637
  • 2
  • 20
  • 34