Skip to content

Instantly share code, notes, and snippets.

@saurabh23july
Created December 7, 2015 06:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saurabh23july/089672d0729471f39561 to your computer and use it in GitHub Desktop.
Save saurabh23july/089672d0729471f39561 to your computer and use it in GitHub Desktop.
#import "AppDelegate.h"
#import "ViewController.h"
#import "SideMenuViewController.h"
@interface AppDelegate ()
{
UINavigationController *navigation;
}
@end
@implementation AppDelegate
- (void)applicationDidFinishLaunching:(UIApplication *)application
{
ViewController *viewCtrl=[[ViewController alloc]init];
navigation=[[UINavigationController alloc]initWithRootViewController:viewCtrl];
navigation.navigationBar.barTintColor = [UIColor colorWithRed:72.0/255.0 green:144.0/255.0 blue:226.0/255.0 alpha:1];
SideMenuViewController *leftMenuViewController = [[SideMenuViewController alloc] init];
MFSideMenuContainerViewController *container = [MFSideMenuContainerViewController
containerWithCenterViewController:navigation
leftMenuViewController:leftMenuViewController
rightMenuViewController:nil];
self.window.rootViewController=container;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment