實現在單元格左右兩側添加按鈕的效果:JASwipeCell

jopen 10年前發布 | 10K 次閱讀 iOS開發 移動開發 JASwipeCell

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.baiduhome.net/lib/view/home/1414740177215

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!