heluxsh / SlideMenu3D

A small class for lateral menu with 3D effect

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SlideMenu3D

CI Status Version License Platform

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.

Video

Installation

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

Usage

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

images of menu by Steven Kuiper https://www.iconfinder.com/Verzint

Author

@hunk, ing.edgar@gmail.com

License

SlideMenu3D is available under the MIT license. See the LICENSE file for more info.

About

A small class for lateral menu with 3D effect

License:MIT License


Languages

Language:Objective-C 67.8%Language:Shell 22.4%Language:Ruby 7.3%Language:C 2.5%