White line at the bottom of a UITableView cell at the end of a section in a Grouped TableView (iOS 5)

I noticed a change in the appearance of the table cells in iOS 5, and I will go a little apart to find out if anyone else has noticed. This guy made and posted this image . I can't play it on every uitableview (if I could know where it came from and I could get rid of it), but that certainly causes me a problem in one of my table views. Has anyone else noticed this - better yet, has anyone else found a way to get rid of it?

+5
source share
2 answers

I had this problem, on an iOS4 phone or simulator it looked great, but for iOS5 it was a problem. I found that the problem is related to the delimiter style for table presentation. It looks like the default value is set for etching for iOS5. I went through my code and added the following line to my init method for all grouped table view controllers:

    self.tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine;

Which fixed the problem for me, although I also installed the following, since the color turned out to be white, not gray, as in the previous version:

    self.tableView.separatorColor = [UIColor lightGrayColor];

This was a problem for me, as I changed the background on all my table views, and the extra line didn't look good for my application.

+18
source

using:

self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;

+1

All Articles