实现在单元格左右两侧添加按钮的效果:JASwipeCell

jopen 9年前

JASwipeCell实现在单元格左右两侧添加按钮的效果。通过滑动可以使按钮可见。可以自定义按钮标题、文字、颜色。

Features

  • Supports adding actionable buttons on either side of the cell.
  • You can customize a button's title text and color.
  • Each button will have a block handler that will execute when pressed.
  • The left/right most button will pin to the top container view as the user swipes all the way. This will also execute that button's action.
  • Supports IOS 7+

Example of the buttons revealing as you swipe left:

image

Example of the right most button pinning to the container view:

image

项目主页:http://www.open-open.com/lib/view/home/1414740177215