PanCellDemo
Contents
左右滑动tableview的cell并做响应,提供两种样式,也可继承
SCCellPanBaseGesture自定义样式
效果见下面的演示图
Codes
以下是写在github里的README:
SCCellPanGestureRecognizer
Description
Pan a cell and do sth when end or cancel to pan.
There are two types of panning a cell in this project.
And you can inherite from the class SCCellPanBaseGesture to make your own type.
Display

How to use
copy the folder
SCCellPanGestureRecognizerto your project.write the code like this:
1 | SCCellPanHorizonGesture *panGes = [[SCCellPanHorizonGesture alloc] initWithTableView:tableView block:^(UITableViewCell *cell, BOOL isLeft) { |
- see more details in my demo project.
Thanks
The second type imitate the app called VVebo.
If the author of VVebo do not allow me to imitate, please contact me: Aevitx@gmail.com, and I will delete the code.
License
This code is distributed under the terms and conditions of the MIT license.
Author: Arvit
Link: https://arvit.xyz/2015/04/04/github-PanCellDemo/
License: 知识共享署名-非商业性使用 4.0 国际许可协议