-1

I have a grouped UITableView with 3 sections, a section header only on section 1, 3, 2, and 5 cells in the sections. When scrolling, the border lines sometimes.

The cells of the table view is a custom cell with a label and a text field. It does not set the cell view background color.

There is no background view or color specified -- all standard.

Typically the borders disappear for the last 2 rows of the last section, and the 2 rows of the 2nd section, but I've seen them all disappear at one point or another.

This is an app where the user enters data in each row. Typically if they just go row by row it works fine, but if they scroll around it fails!

This is happening with Xcode 4.3.2 and iOS 5.1.1. Happens on both iPhone and iPad, but app has been designed so that little scrolling necessary on iPad.

I can't see how this is not an Apple bug, but I'd love for someone to prove me wrong!

The following screen shows the text of the section header, the 2nd group, and the 1st 3 cells of the 3rd group. Note the missing lines!

4

1 回答 1

0

我的 cellForRowAtIndexPath 方法包含一个:

cell.backgroundView = nil;

删除该语句使线条正确显示。

如果我没记错的话,我添加了它来更改单元格的背景颜色。我现在使用:

cell.backgroundColor [UIColor white];
于 2012-11-08T06:24:57.270 回答