Skip to content

waterflowseast/EHSlideView

Repository files navigation

EHSlideView

[![CI Status](http://img.shields.io/travis/Eric Huang/EHSlideView.svg?style=flat)](https://travis-ci.org/Eric Huang/EHSlideView) Version License Platform

Summary

a view you can slide between controllers' view.

dataSource:

- (NSUInteger)numberOfControllersInSlideView:(EHSlideView *)slideView;
- (UIViewController *)slideView:(EHSlideView *)slideView controllerAtIndex:(NSInteger)index;

delegate:

- (void)slideView:(EHSlideView *)slideView currentIndex:(NSInteger)currentIndex slidingToDirection:(EHSlideViewSlideDirection)direction percentage:(CGFloat)percentage;
- (void)slideView:(EHSlideView *)slideView currentIndex:(NSInteger)currentIndex willAutomaticallySlideToDirection:(EHSlideViewSlideDirection)direction;
- (void)slideView:(EHSlideView *)slideView currentIndex:(NSInteger)currentIndex willAutomaticallySlideBackFromDirection:(EHSlideViewSlideDirection)direction;
- (void)slideView:(EHSlideView *)slideView didSlideToIndex:(NSInteger)index;

Screenshots

Example

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

Requirements

iOS 7.0+

Installation

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

pod "EHSlideView"

Author

Eric Huang, WaterFlowsEast@gmail.com

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published