gpt4 book ai didi

ios - 重新排序时,UITableViewCell 的 subview 不可见

转载 作者:可可西里 更新时间:2023-11-01 06:11:46 26 4
gpt4 key购买 nike

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

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

enter image description here

最佳答案

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

出于某种原因,来自 Apple 的神秘重新排序动画无法捕获简单的 UIView,但是使用 UIImageView、UIButtons 和 UILabel 作为自定义 TableViewCell 的 subview 时,动画会像预期的那样工作...令人毛骨悚然!

关于ios - 重新排序时,UITableViewCell 的 subview 不可见,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11076939/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com