Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/wyanassert/wytinderswipeview
- Owner: wyanassert
- License: mit
- Created: 2017-11-27T02:53:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-03T13:00:42.000Z (over 5 years ago)
- Last Synced: 2024-10-31T16:09:02.165Z (19 days ago)
- Language: Objective-C
- Size: 23.7 MB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WYTinderSwipeView
An Univerasl Swipe View Imitate Tinder1. 导入`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)