A small class for lateral menu with 3D effect, support tap gesture when el menu is open and tap gesture all time, support device orientation.
SlideMenu3D is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SlideMenu3D"
Or download the project and export HKSlideMenu3DController.{h/m}
in your project
To run the example project, clone the repo, and run pod install
from the Example directory first.
Import HKSlideMenu3DController class in you view
#import <HKSlideMenu3DController.h>
retain the class
@property (strong, nonatomic) HKSlideMenu3DController *slideMenuVC;`
now init the class y set UIViewControlls for menu y center view
self.slideMenuVC = [[HKSlideMenu3DController alloc] init];
self.slideMenuVC.view.frame = [[UIScreen mainScreen] bounds];
self.slideMenuVC.menuViewController = myMenuViewController;
self.slideMenuVC.mainViewController = myMianViewController;
also you can set background image
self.slideMenuVC.backgroundImage = [UIImage imageNamed:@"cloud"];
you can change the contentMode for the image
self.slideMenuVC.backgroundImageContentMode = UIViewContentModeTopLeft;
for open and close menu call toogleMenu, this function determines the current state of the menu
[self.slideMenuVC toggleMenu];
for replace the mainView, only need set a new UIViewController
self.slideMenuVC.mainViewController = anotherViewController;
images of menu by Steven Kuiper https://www.iconfinder.com/Verzint
@hunk, ing.edgar@gmail.com
SlideMenu3D is available under the MIT license. See the LICENSE file for more info.