Go to file
Aryan Ghassemi 48fc91164a - Fix typo in property for rightMenu (renamed from righMenu to rightMenu)
- Avoid the weird background animation of the shadow when rotating device
2014-01-05 14:41:35 -08:00
SlideMenu - Fix typo in property for rightMenu (renamed from righMenu to rightMenu) 2014-01-05 14:41:35 -08:00
SlideMenu.xcodeproj - Fixed warnings 2013-12-31 10:51:22 -08:00
SlideMenuTests - Initial Upload 2013-04-24 21:09:33 -07:00
.gitignore Initial commit 2013-04-24 21:05:34 -07:00
License.txt - Updated Licensing to MIT 2013-08-28 20:49:25 -07:00
README.md Update README.md 2014-01-03 13:24:48 -08:00
iOS-Slide-Menu.podspec - Updated pod spec 2013-12-24 09:08:24 -08:00
screenshot.png - Resized screen shot 2014-01-03 13:23:45 -08:00

README.md

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

alt tag

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