1) Currently in my app i have tried to implement side menu using
SWRevealViewController downloaded from https://github.com/John-Lluch/SWRevealViewController.
2) Reveal View controller storyboard file is class of SWRevealViewController, which i have imported in my project SWRevealViewController.h and .m.
3)Reveal View controller storyboard file to tableviewcontroller & navigation controller there is segue name reveal view controller set controller.
4)last view controller storyboard file is class of view controller with
UIBarButtonItem *barButton
Here is my code in viewcontroller.m
#import "SWRevealViewController.h"
- (void)viewDidLoad
{
[super viewDidLoad];
SWRevealViewController *revealViewController = self.revealViewController;
if ( revealViewController )
{
_barButton.target = self.revealViewController;
_barButton.action = @selector(revealToggle:);
[self.view addGestureRecognizer:self.revealViewController.panGestureRecognizer];
}
}
5) When i am running my app, there is black screen in simulator, where i need actually bar button with side menu.
6) Storyborad have only 4 files
1.revealViewController connected to tableview controller (using reveal view controller set controller segue)
2.revealViewController connected to navigation controller(using reveal view controller set controller segue)
3.navigation controller to Viewcontroller (using root view controller segue)
6) My files are SWRevealViewController.h &.m, ViewController.h&.m, AppDelegate.h&.m, tableviewcontroller.h&.m
To implement side menu, i referred this http://www.appcoda.com/ios-programming-sidebar-navigation-menu/ IOS: Storyboard and side menu as facebook app