Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. - (void)viewDidLoad {
  2. [super viewDidLoad];
  3.  
  4.  
  5. UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle: nil];
  6. [[ParseServiceManager GetInstance] initializeParse];
  7.  
  8.  
  9.  
  10. [SlideNavigationController sharedInstance].leftMenu = [[UINavigationController alloc] initWithRootViewController:[[LeftMenuViewController alloc] init]];;
  11.  
  12. [SlideNavigationController sharedInstance].rightMenu = [[UINavigationController alloc] initWithRootViewController:[[RightMenuViewController alloc] init]];
  13. [SlideNavigationController sharedInstance].menuRevealAnimationDuration = .18;
  14. [SlideNavigationController sharedInstance].enableSwipeGesture = FALSE;
  15.  
  16. [[NSNotificationCenter defaultCenter] addObserverForName:SlideNavigationControllerDidClose object:nil queue:nil usingBlock:^(NSNotification *note) {
  17. NSString *menu = note.userInfo[@"menu"];
  18. NSLog(@"Closed %@", menu);
  19. }];
  20.  
  21. [[NSNotificationCenter defaultCenter] addObserverForName:SlideNavigationControllerDidOpen object:nil queue:nil usingBlock:^(NSNotification *note) {
  22. NSString *menu = note.userInfo[@"menu"];
  23. NSLog(@"Opened %@", menu);
  24. }];
  25.  
  26. [[NSNotificationCenter defaultCenter] addObserverForName:SlideNavigationControllerDidReveal object:nil queue:nil usingBlock:^(NSNotification *note) {
  27. NSString *menu = note.userInfo[@"menu"];
  28. NSLog(@"Revealed %@", menu);
  29. }];
  30.  
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement