Skip to content
No description or website provided.
Objective-C
Latest commit 30a0c17 Jan 23, 2014 @jeremieweldin Update README.md
Failed to load latest commit information.
JWSlideMenu.xcodeproj
JWSlideMenu Now popViewController can be called to pop elements consistently Dec 14, 2012
JWSlideMenuHD Added screenshots Nov 28, 2011
JWSlideMenuLib ... Nov 15, 2011
Screenshots Added screenshots Nov 28, 2011
.gitignore added .gitignore Nov 28, 2011
LICENSE Modified readme Nov 28, 2011
README.md Update README.md Jan 23, 2014
menu_icon_20x20.png Initial. Nov 15, 2011
star 20x20.png Menu image support Nov 28, 2011

README.md

Description

THIS IS DEPRECATED AND NO LONGER BEING DEVELOPED - MANY BETTER SOLUTIONS HAVE COME OUT - I ONLY LEAVE THIS UP FOR PEOPLE THAT HAVE USED THE CODE OR WANT AN EXAMPLE

My first attempt to duplicate the Facebook iOS app's menu functionality.

The code works, but is a bit more awkward to use than I would like. The idea is that the JWSlideMenuController is a controller container view that can have many child controllers (JWSlideMenuViewControllers) added to it. Each of the children controllers shows up as a menu option in the menu table view that can be toggled by the menu button.

All children added to JWSlideMenuController get set as rootViewControllers in a new instance of JWNavigationController. JWNavigationController acts as a UINavigationController, but one that interacts with the JWSlideMenuController.

ScreenShots

Usage

  1. Clone the repository.
  2. Open the project in Xcode.
  3. Open your project in Xcode.
  4. Drag the JWSlideMenuController to your project.
  5. See the code below.
  6. See the sample projects for more.

Sample Code

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
    self.window.backgroundColor = [UIColor whiteColor];

    //Create a new JWSlideMenuConroller container
    JWSlideMenuController *slideMenu = [[[JWSlideMenuController alloc] init] autorelease];

    //Create a child controller to add to it.
    //This needs to be a subclass of JWSlideMenuViewController, which is a subclass of UIViewController
    JWSlideMenuViewController *f = [[[FirstHDViewController alloc]initWithNibName:@"FirstHDViewController" bundle:nil] autorelease];

    //Add the child controller to the container controller
    [slideMenu addViewController:f withTitle:@"First" andImage:nil];

    //Set the window's rootViewController to the container.
    self.window.rootViewController = slideMenu;

    [self.window makeKeyAndVisible];
    return YES;
}

License

This project is released under the MIT license. Please see the LICENSE file included in the project.

What's Next?

These items are being worked on next:

  • Does not build to a library yet.
Something went wrong with that request. Please try again.