ECDrawerLayout 0.1.7

ECDrawerLayout 0.1.7

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

Maintained by Eleven Chen.



  • By
  • Eleven Chen

Overview

A very simple DrawerLayout implemented on the iOS.

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

ECDrawerLayout is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "ECDrawerLayout"

Configuring

self.drawerLayout = [[ECDrawerLayout alloc] initWithParentView:self.navigationController.view];
self.drawerLayout.contentView = self.drawerView;
self.drawerLayout.delegate = self;
[self.navigationController.view addSubview:self.drawerLayout];

You have to implement a content view yourself, and then add it to drawerLayout's contentView property. Please see the example.

if you want to open from right, set the openFormRight = YES

self.drawerLayout.openFromRight = YES;

I look forward to the effect that when DrawerLayout display, status bar hidden, like Uber did. :(

image

Author

Eleven Chen, [email protected]

License

ECDrawerLayout is available under the MIT license. See the LICENSE file for more info.