Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 1.72 KB

README.md

File metadata and controls

59 lines (44 loc) · 1.72 KB

CYHMultiRevealViewController

A view controller which can slide in and out by side and push with unlimited views.

Features

  • Easy to use
  • Unlimited view controllers
  • Multi-Directions to slide in
  • Support swipe gestures

Exapmles

You can set 4 directions for the view controller to slide in.

Direction Left


screen-shot


Direction Top


screen-shot

Usage

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];

License

This project is under MIT License. Please feel free to use. Yuhua Chen