https://github.com/skyhacker2/ecdrawerlayout
DrawerLayout on iOS
https://github.com/skyhacker2/ecdrawerlayout
Last synced: 3 months ago
JSON representation
DrawerLayout on iOS
- Host: GitHub
- URL: https://github.com/skyhacker2/ecdrawerlayout
- Owner: skyhacker2
- License: mit
- Created: 2015-08-19T06:51:57.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-03-16T10:08:17.000Z (over 10 years ago)
- Last Synced: 2025-10-19T18:40:46.432Z (8 months ago)
- Language: Objective-C
- Size: 1.14 MB
- Stars: 56
- Watchers: 2
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ECDrawerLayout
[](https://travis-ci.org/Eleven Chen/ECDrawerLayout)
[](http://cocoapods.org/pods/ECDrawerLayout)
[](http://cocoapods.org/pods/ECDrawerLayout)
[](http://cocoapods.org/pods/ECDrawerLayout)
## 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](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
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. :(

## Author
Eleven Chen, skyhacker@126.com
## License
ECDrawerLayout is available under the MIT license. See the LICENSE file for more info.