Skip to content

iOS Slide Menu with ability to add both left and right menu, and built in gesture recognizer. Similar to Path and Facebook

License

Notifications You must be signed in to change notification settings

martinkaplan/iOS-Slide-Menu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iOS-Slide-Menu

iOS Slide Menu built on top of UINavigationController.

Features:

  • Righ Menu
  • Left Menu
  • Configurable Buttons
  • Allows Enable/Disable menu by implmenting delegate methods
  • Tap/Swipe gesture recognizer to Open/Close the Menus

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] switchToViewController:vc withCompletion:nil];

Configuring Left and Right menu for different Viewcontrollers

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

- (BOOL)slideNavigationControllerShouldDisplayLeftMenu
{
        return YES;
}

- (BOOL)slideNavigationControllerShouldDisplayRightMenu
{
	return YES;
}

@end

About

iOS Slide Menu with ability to add both left and right menu, and built in gesture recognizer. Similar to Path and Facebook

Resources

License

Stars

Watchers

Forks

Packages

No packages published