Subviews of UITableViewCell are not visible while reordering

吃可爱长大的小学妹 提交于 2019-12-07 08:50:39

问题


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...

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


回答1:


Ok I found a solution by my self...

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!



来源:https://stackoverflow.com/questions/11076939/subviews-of-uitableviewcell-are-not-visible-while-reordering

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!