A pod for a very basic implementation of the "slide left to reveal" menu. It is intentionally barebones to implement the bare minimum necessary for the UI without additional complexity.
Install with CocoaPods:
pod 'HAWLeftMenuViewController'
-
Import:
#import "HAWLeftMenuViewController.h"
-
Create the view controller
HAWLeftMenuViewController *slideController = [[HAWLeftMenuViewController alloc] init];
-
Specify the left and main controllers, specify the width while open
slideController.leftViewController = myMenuController;
slideController.mainViewController = myMainController;
slideController.leftViewOpenSize = 150;
-
Replace the main controller as necessary (will close the menu if open)
slideController.mainViewController = anotherController;
There is a simple example included with the project. See LeftMenuViewExample
##Contribute
Send me pull requests !!
##Authors
Jerry Wong - @potatolicious