UITableViewCell滑动抽屉 [英] UITableViewCell Swipe for Drawer

查看:97
本文介绍了UITableViewCell滑动抽屉的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这更像是一个好奇心而非硬编码问题。

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

Facebook和Twitter都有一个功能,即刷UITableViewCell可以将单元格移动到旁边露出一个带有更多控件的抽屉。这样的事情是如何完成的?

Both Facebook and Twitter both have a feature where swiping a UITableViewCell animates the cell off the side to reveal a drawer with more controls underneath. How is something like that accomplished?

推荐答案

这是一个很好的开源方法,可以根据Twitter应用程序:

Here is a great open-source method for doing exactly this, based on the behavior of the Twitter app:

https://github.com/thermogl/TISwipeableTableView

这篇关于UITableViewCell滑动抽屉的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆