重新排序时不可见UITableViewCell的子视图 [英] Subviews of UITableViewCell are not visible while reordering

查看:103
本文介绍了重新排序时不可见UITableViewCell的子视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我对UITableViewCells进行重新排序时,在拖动时不可见单元格的子视图...无论是在UITableViewCell子类中还是在Storyboard中以编程方式添加子视图,都得到相同的结果...

When I reorder my UITableViewCells, the Subviews of the Cell are not visible while dragging...I get always the same result, whether I add the Subviews programmatically in a UITableViewCell Subclass or in Storyboard...

是否有可能在拖动时看到带有子视图的真实UITableViewCell?

Is there a possibility to see the real UITableViewCell with Subviews while dragging?

推荐答案

好吧,我自己找到了解决方法...

Ok I found a solution by my self...

由于某种原因,Apple神秘的重新排序动画无法捕获简单的UIView,但是将UIImageViews,UIButtons和UILabels作为自定义TableViewCell的子视图,该动画的工作原理与预期的一样……令人毛骨悚然!

For some reason the mysterious reordering animation from Apple cant capture simple UIViews, but with UIImageViews, UIButtons and UILabels as Subviews of the custom TableViewCell, the animation works like expected...creepy!

这篇关于重新排序时不可见UITableViewCell的子视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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