A view controller which can slide in and out by side and push with unlimited views.
- Easy to use
- Unlimited view controllers
- Multi-Directions to slide in
- Support swipe gestures
You can set 4 directions for the view controller to slide in.
Direction Left
Direction Top
To Initialize CYHMultiRevealViewController
UIViewController *aViewController = [[UIViewController alloc] init];
UIViewController *bViewController = [[UIViewController alloc] init];
UIViewController *cViewController = [[UIViewController alloc] init];
CYHMultiRevealViewController *revealViewController = [[CYHMultiRevealViewController alloc] initWithView:self.view andViewControllers:@[aViewController,bViewController,cViewController]];
//set up the direction(default is CYHRevealDirectionLeft)
revealViewController.direction = CYHRevealDirectionTop;
simply to use like push
or pop
, even push a new view controller dynmaically
//to push next view
[revealViewController push];
//to pop out view
[revealViewController pop];
//to push a new view controller
UIViewController *newViewController = [[UIViewController alloc] init];
[revealViewController pushViewController:newViewController];
This project is under MIT License. Please feel free to use. Yuhua Chen