Skip to content

wyanassert/WYTinderSwipeView

Repository files navigation

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.

  1. 添加引用

    #import "WYTinderSwipeView.h"

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

    tinderSwipeView.delegate = self;

    then layout With Masonry.

    Or you can init WYTinderSwipeView using initWithFrame.

  2. 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.

  1. Run project in WYTinderSwipeViewDemo directory for using.

Demo

About

An Univerasl Swipe View Imitate Tinder

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors