Latest 0.1
Homepage https://github.com/0x5e/GSSideMenu
License MIT
Platforms ios 7.0, requires ARC
Frameworks UIKit
Authors

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

Learned from MFSideMenu.

preview

Installation

CocoaPods

Add pod 'GSSideMenu' to your Podfile.

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"];
}

Latest podspec

{
    "name": "GSSideMenu",
    "version": "0.1",
    "license": "MIT",
    "summary": "A small & simple side menu using UIDynamics",
    "homepage": "https://github.com/0x5e/GSSideMenu",
    "authors": {
        "0x5e": "[email protected]"
    },
    "source": {
        "git": "https://github.com/0x5e/GSSideMenu.git",
        "tag": "0.1"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "GSSideMenu/*",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This