GSSideMenu 0.1

GSSideMenu 0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Mar 2015

Maintained by 0x5e.



  • By
  • 0x5e

A simple side menu using UIDynamics. Including gravity, attachment, push, parallax effect and so on.

Learned from MFSideMenu.

preview

Installation

Manually

Add GSSideMenu folder to your project.

Usage

Basic Example

In your app delegate:

#import "GSSideMenu.h"

GSSideMenuViewController *container = [GSSideMenuViewController initWithCenterViewController:centerViewController MenuViewController:menuViewController;
self.window.rootViewController = container;
[self.window makeKeyAndVisible];

Storyboard

  1. Create a subclass of GSSideMenu, for example MainViewController.
  2. Add two view controllers to your storyboard and give them identifiers, for example @"MenuView" and @"CenterView".
  3. Add a method awakeFromNib to MainViewController with the following code:
- (void)awakeFromNib {
    self.menuViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"MenuView"];
    self.centerViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"CenterView"];
}