代码库> 列表> DNSSwipeableTableCell
DNSSwipeableTableCell
关注
查看次数:2901 下载次数:701
上传时间:2014-03-25 大小:3 KB

DNSSwipeableTableCell是一个UITableViewCell子类,在类似iOS 7的Mail应用的滑动菜单中添加了多个按钮。DNSSwipeableTableCell作者曾在RayWenderlich.com上写过一篇“how to create a swipeable UITableViewCell for iOS 7”的文章,而该项目则是在原文基础上的扩展。

添加一个删除按钮非常简单,但单元格构建的方式时的添加一个删除按钮和一个其他按钮变得不那么容易。

最大的改变
•Removed dependency on the storyboard
•Made the  myContentView  public so the cell could be subclassed and recycled more easily.
•Beefed up delegate to handle an arbitrary number of buttons
•Added datasource to allow tons of user-configurable options
•Tweaked the animation so it uses spring damping instead of trying to do that manually
•Added a ton of documentation to the swipeable cell class
•Cleaned up the sample app quite a bit
•Added a sample subclass.
•Added a bunch of photos of my cat, because the internet loves cats. 









收藏
我来说两句
发表评论
您还没有登录!请登录注册
所有评论(0
提示
sina weixin mail 回到顶部