Go to file
Aryan Gh de6496c47e - Fixed a spelling mistake on protocol name 2013-04-29 17:50:07 -07:00
SlideMenu - Fixed a spelling mistake on protocol name 2013-04-29 17:50:07 -07:00
SlideMenu.xcodeproj - Got rid of left and right bar button image 2013-04-27 00:59:33 -07:00
SlideMenuTests - Initial Upload 2013-04-24 21:09:33 -07:00
.gitignore Initial commit 2013-04-24 21:05:34 -07:00
README.md Update README.md 2013-04-29 17:44:19 -07:00

README.md

iOS-Slide-Menu

iOS Slide Menu built on top of UINavigationController

Setup

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
	LeftMenuViewController *leftMenu = [[LeftMenuViewController alloc] init];
        RightMenuViewController *righMenu = [[RightMenuViewController alloc] init];
	
	[SlideNavigationController sharedInstance].righMenu = rightMenu;
	[SlideNavigationController sharedInstance].leftMenu = leftMenu;
	
    // Override point for customization after application launch.
    return YES;
}

Switch Between ViewControllers

Let's say a menu item was selected

SomeViewController *vc = [[SomeViewController alloc] init];
[[SlideNavigationController sharedInstance] switchViewController:vc withCompletion:nil];

Configuring Left and Right menu for different Viewcontrollers

@interface MyViewController : UIViewController <SlideNavigationControllerDelegate>
@end
@implementation MyViewController

- (BOOL)slideNavigationControllerShoulDSisplayLeftMenu
{
        return YES;
}

- (BOOL)slideNavigationControllerShouldDisplayRightMenu
{
	return YES;
}

@end