Created
December 7, 2015 06:33
-
-
Save saurabh23july/089672d0729471f39561 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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