redribben

MVY delegate

Nov 16th, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
  2.     // Override point for customization after application launch.
  3.    
  4.     MVYMenuViewController *menuVC = [[MVYMenuViewController alloc] initWithNibName:@"MVYMenuViewController" bundle:nil];
  5.     MVYContentViewController *contentVC = [[MVYContentViewController alloc] initWithNibName:@"MVYContentViewController" bundle:nil];
  6.     UINavigationController *contentNavigationController = [[UINavigationController alloc] initWithRootViewController:contentVC];
  7.     MVYSideMenuOptions *options = [[MVYSideMenuOptions alloc] init];
  8.     options.contentViewScale = 1.0;
  9.     options.contentViewOpacity = 0.05;
  10.     options.shadowOpacity = 0.0;
  11.     MVYSideMenuController *sideMenuController = [[MVYSideMenuController alloc] initWithMenuViewController:menuVC
  12.                                                                                     contentViewController:contentNavigationController
  13.                                                                                                   options:options];
  14.     sideMenuController.menuFrame = CGRectMake(0, 64.0, 220.0, self.window.bounds.size.height - 64.0);
  15.    
  16.     self.window.rootViewController = sideMenuController;
  17.     [self.window makeKeyAndVisible];
  18.     return YES;
Advertisement
Add Comment
Please, Sign In to add comment