An Univerasl Swipe View Imitate Tinder
- 导入
WYTinderSwipeView
1.1 Cocospods
pod 'WYTinderSwipeView'
1.2 Manual Import
Drag WYTinderSwipeView
directory and Resource
directory into your project.
-
添加引用
#import "WYTinderSwipeView.h"
WYTinderSwipeView *tinderSwipeView = [[WYTinderSwipeView alloc] init];
tinderSwipeView.delegate = self;
then layout With Masonry.
Or you can init
WYTinderSwipeView
usinginitWithFrame
. -
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.
- Run project in WYTinderSwipeViewDemo directory for using.