Gray line on top of UITableView iOS 5

A strange gray line appeared on top of my UITableView in iOS 5 (it was never present until I switched to Xcode 4.3 and launched the application on iPhone iOS 5) - did anyone else see this? I also got funny white lines in some of my other TableViewControllers, which I got rid of by doing this:

    // needed to get rid of funny white lines in iOS 5
    tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine;
tableView.separatorColor = [UIColor clearColor]; 

However, this does not help to remove this line. There is no title. The line scrolls up and down using my UITableView   settings

+3
source share
3 answers

, . , . UITableViewCell , , -, .

tableView.separatorColor = [UIColor clearColor]; 
+1

, heightForHeaderInSection. 0.

-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
    return 0.0;
}
0

colorWithPatternImage colorWithRed:green:blue:alpha, .

//self.tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"background"]];
self.tableView.backgroundColor = [UIColor colorWithRed: green: blue: alpha:]

, , background.png , , .

0

All Articles