Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
- //MVYSideMenu code
- // [UIStoryboard storyboardWithName:@"Main_iPhone.Storyboard" bundle: nil];
- UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle: nil];
- MenuViewController *menuViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"Menu"]; //VC in my storyboard that I want as the slide out menu
- UINavigationController *navController = [[UINavigationController alloc]initWithRootViewController:menuViewController];
- self.tabBarController = [self.storyboard instantiateViewControllerWithIdentifier: @"Main"];
- MVYSideMenuOptions *options = [[MVYSideMenuOptions alloc] init];
- options.contentViewScale = 1.0;
- options.contentViewOpacity = 0.5;
- options.shadowOpacity = 0.0;
- options.bezelWidth = 200;
- //tabbar is the main vc and navController has aroot view, filter view controller
- MVYSideMenuController *sideBarController = [[MVYSideMenuController alloc]initWithMenuViewController:navController
- contentViewController:self.tabBarController
- options:options];
- self.window.rootViewController = sideBarController; //Setup in the window, so its ontop of the tabbar when it shows
- self.tabBarController.delegate = self;
- [self.window makeKeyAndVisible];
- return YES;
- }
Advertisement
Add Comment
Please, Sign In to add comment