Skip to content

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

License

Notifications You must be signed in to change notification settings

yuhua-chen/CYHMultiRevealViewController

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published