Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

calvinchankf/CCKFNavDrawer

Repository files navigation

Thank you guys so much for all your support. The project has been discontinued. Thank you.

CCKFNavDrawer

CCKFNavDrawer is a custom navigationController implementing sliding menu on IOS, which aims to provide Android Navigation Drawer for developers to make it on IOS.

Screenshots

Screenshot

Demo

Features

  • Left BarButtonItem to open/close the Drawer
  • Fast swipe to open/close the drawer
  • Gesture to open/close the drawer
  • Tap on Shawdow to close the drawer

How to use

  • Replace your UINavigationController with CCKFNavDrawer class
  • Add your IBOutlet and code in DrawerView class in order to customize the appearance of your drawer view.
  • Adopt the protocol CCKFNavDrawerDelegate
  • Set setCCKFNavDrawerDelegate to your root view controller. e.g.
self.rootNav = (CCKFNavDrawer *)self.navigationController;
[self.rootNav setCCKFNavDrawerDelegate:self];
  • implement the delegate method. e.g.
- (void)CCKFNavDrawerSelection:(NSInteger)selectionIndex
{
  NSLog(@"%i", selectionIndex);
}

in order to get the index of selection in navigation drawer


For detail, please take a look in VC class.

Limitation

  • It is ios7 only.
  • It is currently portrait only, I will make it landscape soon. Of couse, I welcome and appreciate someone can make it landscape compatible. FORK me if you want to make it better!

About

Android Navigation Drawer for iOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published