Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:main];
- _revealSideViewController = [[PPRevealSideViewController alloc] initWithRootViewController:nav];
- _revealSideViewController.delegate = self;
- self.window.rootViewController = _revealSideViewController;
- -(void)popViewController{
- UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
- PoppedViewController *pvc = [storyboard instantiateViewControllerWithIdentifier:@"PoppedViewController"];
- [self.revealSideViewController pushViewController:pvc onDirection:PPRevealSideDirectionBottom withOffset:_offset animated:_animated completion:nil];
- }
- -viewDidLoad{
- //...
- UITapGestureRecognizer *gesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(getFullView)];
- gesture.delegate = self;
- [self.view addGestureRecognizer:gesture];
- }
- -getFullView{
- [self.revealSideViewController changeOffset:0.0f forDirection:PPRevealSideDirectionLeft];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement