An extra view appears in cell when pressing reorder dragger, why?

独自空忆成欢 提交于 2019-12-13 00:26:13

问题


I have an UITableView with varying height, and when pressing reorder control, in the cell view structure a new view appears. Normally it is not a problem, but sometimes its height is quite big, and it overlaps, with cell below.

  • Why this view appears?
  • How can I get rid of it?
  • Or prevent to overlap other cells?


回答1:


This view is part of the reorder mechanism and can't be removed. It is used to hide the cell content while you drag a screenshot view above the tableview.

If you set the cell clipsToBounds as YES, it should prevent it's content overlapping other cells.



来源:https://stackoverflow.com/questions/30758111/an-extra-view-appears-in-cell-when-pressing-reorder-dragger-why

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