简体   繁体   English

UITableViewCell覆盖向左滑动的删除按钮

[英]UITableViewCell covering delete button on swipe left

I am posting this question, specifically related to iOS 7. 我发布此问题,特别是与iOS 7有关的问题。

When I swipe cell to left, the delete button appear correctly, but the cell is not moving left enough, which results in the delete button being covered by the cell for nearly half of its width. 当我向左滑动单元格时,删除按钮会正确显示,但是单元格向左移动的不够,这导致删除按钮被单元格覆盖了近一半的宽度。

The cell is a class extending UITableViewCell, and in Storyboard there's a UIView with some child views in it, but for the rest it is just a plain cell. 该单元格是扩展UITableViewCell的类,并且在Storyboard中有一个UIView中带有一些子视图,但对于其余部分,它只是一个普通单元格。

The custom class is not implementing any drawing mechanism. 自定义类未实现任何绘制机制。

Unless you have some custom code configuring your cell, I would remove the code for this and add it back. 除非您有一些用于配置单元的自定义代码,否则我将为此删除代码并将其重新添加。 There has to be something that you've written in your code to cause this to happen. 您必须在代码中写一些东西才能导致这种情况发生。 Usually, this functionality works right out of the box. 通常,此功能开箱即用。 Post your code so that we can see what's causing the issue. 发布您的代码,以便我们可以了解导致问题的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM