按重新排序拖动器时,单元格中会出现一个额外的视图,为什么? [英] An extra view appears in cell when pressing reorder dragger, why?

查看:92
本文介绍了按重新排序拖动器时,单元格中会出现一个额外的视图,为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个高度不同的UITableView,当按重新排序控件时,在单元格视图结构中会出现一个新视图.通常这不是问题,但是有时它的高度很大,并且与下面的单元格重叠.

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.

  • 为什么显示此视图?
  • 我如何摆脱它?
  • 还是防止与其他单元格重叠?

推荐答案

此视图是重新排序机制的一部分,不能删除.当您将屏幕快照视图拖动到表格视图上方时,它用于隐藏单元格内容.

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.

如果将单元格clipsToBounds设置为YES,则应防止其内容与其他单元格重叠.

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

这篇关于按重新排序拖动器时,单元格中会出现一个额外的视图,为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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