Advertisement
Guest User

Untitled

a guest
Aug 31st, 2015
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:main];
  2.  
  3. _revealSideViewController = [[PPRevealSideViewController alloc] initWithRootViewController:nav];
  4.  
  5. _revealSideViewController.delegate = self;
  6.  
  7. self.window.rootViewController = _revealSideViewController;
  8.  
  9. -(void)popViewController{
  10. UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
  11. PoppedViewController *pvc = [storyboard instantiateViewControllerWithIdentifier:@"PoppedViewController"];
  12. [self.revealSideViewController pushViewController:pvc onDirection:PPRevealSideDirectionBottom withOffset:_offset animated:_animated completion:nil];
  13. }
  14.  
  15. -viewDidLoad{
  16. //...
  17. UITapGestureRecognizer *gesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(getFullView)];
  18. gesture.delegate = self;
  19. [self.view addGestureRecognizer:gesture];
  20. }
  21.  
  22. -getFullView{
  23. [self.revealSideViewController changeOffset:0.0f forDirection:PPRevealSideDirectionLeft];
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement