Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/wyanassert/wytinderswipeview

An Univerasl Swipe View Imitate Tinder
https://github.com/wyanassert/wytinderswipeview

Last synced: 8 days ago
JSON representation

An Univerasl Swipe View Imitate Tinder

Awesome Lists containing this project

README

        

# WYTinderSwipeView
An Univerasl Swipe View Imitate Tinder

1. 导入`WYTinderSwipeView`

1.1 Cocospods

`pod 'WYTinderSwipeView'`

1.2 Manual Import

Drag `WYTinderSwipeView` directory and `Resource` directory into your project.

2. 添加引用

`#import "WYTinderSwipeView.h"`

`WYTinderSwipeView *tinderSwipeView = [[WYTinderSwipeView alloc] init]; `

`tinderSwipeView.delegate = self;`

then layout With Masonry.

Or you can init `WYTinderSwipeView` using `initWithFrame`.

3. load Data -- ccomplete `WYTinderSwipeViewDelegate`

`- (BOOL)loadMoreDataInsideSwipeViewWithCompletion:(WTSDraggableViewLoadMoreBlock)block`

fetch your data and then call `block` when loading data finished.

return YES when dataSource exist more data. OtherWhile return No.

4. Run project in WYTinderSwipeViewDemo directory for using.

---
![Demo](https://github.com/wyanassert/WYTinderSwipeView/blob/master/demo.gif)