简体   繁体   English

在iOS 7上分组UITableView故障

[英]Grouped UITableView glitch on iOS 7

I build my app in Xcode4.6 and run it on iPod5 with iOS7. 我在Xcode4.6中构建我的应用程序并使用iOS7在iPod5上运行它。

The table view is grouped, all cells are standard. 表视图已分组,所有单元格都是标准的。 Table is in editing mode for one section. 表处于一个部分的编辑模式。 There is a very weird glitch on cells which are in editing mode. 在处于编辑模式的单元格上有一个非常奇怪的故障。 Problem is shown on the screenshot (with glitch and normal). 问题显示在屏幕截图上(有毛刺和正常)。

This "thing" appears only for a moment, I am able to catch it only in dispatch_async from viewDidAppear. 这个“东西”只出现了片刻,我只能在viewDidAppear的dispatch_async中捕获它。 Then after a moment it disappears by itself and all comes to normal (cellForRowAtIndexPath, layoutSubviews in cell are not called, I'm not reloading the table! - weirdest thing). 然后片刻之后它会自动消失并且一切正常(cellForRowAtIndexPath,单元格中的layoutSubviews没有被调用,我没有重新加载表格! - 最奇怪的事情)。

My table and cells are pretty complex, but I digged down and removed all unrelevant views. 我的表和单元格非常复杂,但我挖掘并删除了所有不相关的视图。 Here table is transparent, red is color of the view behind it. 这里的表是透明的,红色是它后面的视图的颜色。 I have set cell.contentView.alpha to zero (all my views are added to it), and cell itself is green. 我已将cell.contentView.alpha设置为零(我的所有视图都添加到其中),并且单元格本身为绿色。 I tried cell.alpha = 0, in this case cell is not showing and there is no glitch, so it is definitely problem with a cell. 我试过cell.alpha = 0,在这种情况下,单元格没有显示并且没有毛刺,所以它肯定是一个单元格的问题。

Please write any suggestions, I ran out of ideas. 请写下任何建议,我没有想法。 Thanks. 谢谢。

UPD. UPD。 It appears that this only happens in edit mode. 看起来这只发生在编辑模式中。 If I don't set it to YES, everything's ok. 如果我没有把它设置为YES,一切都没问题。 UPD 2. The glitch appears when [table setEditing:YES] is called. UPD 2.调用[table setEditing:YES]时出现毛刺。 If animated, it shows that this thing expands to a normal width of a cell and becomes normal. 如果是动画,则表明此事物扩展到单元格的正常宽度并变为正常。 I'm starting to think that it's unsolvable (obviously Apple won't fix it) 我开始认为它无法解决(显然Apple不会解决它)

毛刺正常

Since I asked this question I have noticed this bug in many iOS6 applications in AppStore. 自从我问这个问题以来,我在AppStore中的许多iOS6应用程序中都注意到了这个问题。 I assume this is a bug with iOS6 apps built on Xcode4 that are run on iOS7 in compatibility mode. 我认为这是在Xcode4上构建的iOS6应用程序的一个错误,它在兼容模式下在iOS7上运行。

I do not use Xcode4 anymore, and I don't support iOS6 in my apps. 我不再使用Xcode4了,我的应用程序中不支持iOS6。

So this question is neither relevant nor worth solving. 所以这个问题既不相关也不值得解决。

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

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