At first take a view in your .h file UIView *newView;
declare its property and synhesize it at your .m file
Now in cellForRowAtIndexPath
if(cell==nil){
................
.........
newView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, cell.frame.size.width, cell.frame.size.height)];
[cell.contentView addSubview:newView];
................
...............
}
if(indexPath.row == 0){
newView.backgroundColor = [UIColor [UIColor colorWithPatternImage:[UIImage imageNamed:@"lightwood.jpg"]];
}
if(indexPath.row == 1){
newView.backgroundColor = [UIColor [UIColor colorWithPatternImage:[UIImage imageNamed:@"lightwood.jpg"]];
}
if(indexPath.row == 2){
newView.backgroundColor = [UIColor [UIColor colorWithPatternImage:[UIImage imageNamed:@"lightwood.jpg"]];
}
If any further question please knock me.
EDIT:
if any problem still now then check this link http://cocoawithlove.com/2009/04/easy-custom-uitableview-drawing.html