I am using background view for UITableviewCell which is an imageview, I am using the image view to achieve two side corners for first and last cell. It is working fine But t
I was facing the same issue and finally got solution. Try this:
Instead of calling setBackgroundImage
in cellForRowAtIndexPath
(Delegate Method). Call it in willDisplayCell
:
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
cell.backgroundColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"cellList.png"]];
}
Enjoy Coding