UITableViewCell Swipe for Drawer

前端 未结 5 618
醉梦人生
醉梦人生 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:12

    2 ways to detect swipt action

    1. look at the willTransitionToState: method of UITableViewCell. this method will be invoked when you swipe at the cell.

    2. Custom swipe detection in a TableViewCell

    and then you can change your cell view easily.

提交回复
热议问题