Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.4 KB

README.md

File metadata and controls

27 lines (18 loc) · 1.4 KB

THSwipeCell

A swift file provides custom swipe table view cell.

alt text

##How to use:

  1. Copy THSwipeCell.swift file on your project.
  2. Subclass THSwipeCell.
  3. Override awakeFromNib and add a subview to cell contentView for the whole boundary and assign it to cellContainerView property, then append buttons(tag as Identifier) to property buttonOptions array list.
  4. Add UI components to cellContainerView.
  5. Implement THSwipeCellDelegate protocol and confirm the protocol for the custom cell on cellForRowAtIndex method.

Optional for tap to open buttons

  1. Use THSwipeCellTable as your table.
  2. Implement didSelectRowAtIndexPath delegate method and call respective method of THSwipeCellTable.

Optional for disable the multi selection cell

  1. Implement scrollViewWillBeginDragging, scrollViewDidScroll and scrollViewDidEndDragging Delegate methods of UIScrollView and call the respective methods in THSwipeCellTable.
  2. Call didOpenCell method of THSwipeCellTable inside the didOpenSwipeCell of THSwipeCellDelegate.

##License THSwipeCell is licensed under the terms of the MIT License. Please see the License file for full details.