如何扩大在这个GIF使用SWIFT动画一样的UITableViewCell高度? [英] how to expand uitableviewcell height using swift with animation like in this gif?
本文介绍了如何扩大在这个GIF使用SWIFT动画一样的UITableViewCell高度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个的UITableView
在我的应用程序,我想有细胞展开,以显示像GIF附加一些细节。
I have a UITableView
in my app, I want to have the cell expanded to reveal some details like the attached gif.
你认为什么是做到这一点的最好方法是什么?
我看到有人在谈论Objc-C的方法,但如何做到这一点的SWIFT?
What do you think is the best way to do this? I have seen people talking about Objc-C way, but how to do it in swift?
- 滴答作响的圆圈类似于触摸。
编辑:
我设法把这个工作,但如何改变动画的速度?
I managed to have this working, but how to change animation speed?
推荐答案
只是增加(点击的细胞)的高度,并调用下面的方法。
just increase the height(of the clicked cell) and call the below methods.
table.beginUpdates()
table.endUpdates()
这篇关于如何扩大在这个GIF使用SWIFT动画一样的UITableViewCell高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文