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.
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
- Create a subclass of
GSSideMenu
, for exampleMainViewController
. - Add two view controllers to your storyboard and give them identifiers, for example
@"MenuView"
and@"CenterView"
. - Add a method
awakeFromNib
toMainViewController
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" }
Mon, 29 Feb 2016 16:55:03 +0000