UITableViewCell Swipe for Drawer

前端 未结 5 619
醉梦人生
醉梦人生 2021-02-04 15:31

This is really more of a curiosity than a hard coding question.

Both Facebook and Twitter both have a feature where swiping a UITableViewCell animates the cell off the s

5条回答
  •  野性不改
    2021-02-04 16:28

    You could just implement -tableView:willBeginEditingRowAtIndexPath: in your table view delegate.

    From the doc,

    This method is called when the user swipes horizontally across a row; ... This method gives the delegate an opportunity to adjust the application's user interface to editing mode.

提交回复
热议问题