An open API service indexing awesome lists of open source software.

https://github.com/skyhacker2/ecdrawerlayout

DrawerLayout on iOS
https://github.com/skyhacker2/ecdrawerlayout

Last synced: 3 months ago
JSON representation

DrawerLayout on iOS

Awesome Lists containing this project

README

          

# ECDrawerLayout

[![CI Status](http://img.shields.io/travis/Eleven Chen/ECDrawerLayout.svg?style=flat)](https://travis-ci.org/Eleven Chen/ECDrawerLayout)
[![Version](https://img.shields.io/cocoapods/v/ECDrawerLayout.svg?style=flat)](http://cocoapods.org/pods/ECDrawerLayout)
[![License](https://img.shields.io/cocoapods/l/ECDrawerLayout.svg?style=flat)](http://cocoapods.org/pods/ECDrawerLayout)
[![Platform](https://img.shields.io/cocoapods/p/ECDrawerLayout.svg?style=flat)](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. :(

![image](ECDrawerLayout.gif)

## Author

Eleven Chen, skyhacker@126.com

## License

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