Go to file
Aryan Gh d8867cfb3e - Got rid of left and right bar button image
- Allowing custom barbuttons to be passed, and used for both right and left bar buttons menu items
2013-04-27 00:59:33 -07:00
SlideMenu - Got rid of left and right bar button image 2013-04-27 00:59:33 -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-27 00:09:39 -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 ViewController 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)slideNavigationControllerShouldSisplayRightMenu
{
	return YES;
}

@end