LiDechao / GuillotineMenu-Yalantis-ObjC

This is the Objective-C Version of GuillotineMenu made by Yalantis https://github.com/Yalantis/GuillotineMenu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GuillotineMenu Yalantis objc Version

Build Status

This is the Objective-C Version of GuillotineMenu made by Yalantis https://github.com/Yalantis/GuillotineMenu

Preview

#Usage The easiest way to use this cool menu is to instantiate the TGLGuillotineMenu in your AppDelegate and, then make it the rootController of a UINavigationController instance.

TGLTableViewController *vc01 = [[TGLTableViewController alloc] init];
TGLSampleViewController *vc02 = [[TGLSampleViewController alloc] init];
TGLTableViewController *vc03 = [[TGLTableViewController alloc] init];
TGLSampleViewController *vc04 = [[TGLSampleViewController alloc] init];

NSArray *vcArray        = [[NSArray alloc] initWithObjects:vc01, vc02, vc03, vc04, nil];
NSArray *titlesArray    = [[NSArray alloc] initWithObjects:@"PROFILE", @"FEED", @"ACTIVITY", @"SETTINGS", nil];
NSArray *imagesArray   = [[NSArray alloc] initWithObjects:@"ic_profile", @"ic_feed", @"ic_activity", @"ic_settings", nil];

TGLGuillotineMenu *menuVC = [[TGLGuillotineMenu alloc] initWithViewControllers:vcArray MenuTitles:titlesArray andImagesTitles:imagesArray];
menuVC.delegate = self;
menuVC.menuButtonImageTitle = @"menuIcon";

UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:menuVC];

#Installation Manual installation. Just copy GuillotineMenu folder to your project. Will be available on cocoapods soon.

Note

This is my first attempt to make a simple Objective-C version of Yalantis control. From now I will update this control to make this an awesome iOS menu. Feel free to contribute!

About

This is the Objective-C Version of GuillotineMenu made by Yalantis https://github.com/Yalantis/GuillotineMenu


Languages

Language:Objective-C 97.5%Language:Ruby 2.5%