Iphone UITableView分组背景图像

Iphone UITableView分组背景图像,iphone,ios,objective-c,uitableview,Iphone,Ios,Objective C,Uitableview,我正在设置UITableViewgrouped image,但它显示了我想要的整个表 在下面的第二个表格中,它应该只对单元格和表格的区域进行背景成像,而不是第二个表格中的灰色边框 使用以下代码 self.tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"Background.png"]]; 要了解为分组UITableViewread设置背景图像的另一种方法,请使用以下代码 self.

我正在设置
UITableView
grouped image,但它显示了我想要的整个表 在下面的第二个表格中,它应该只对单元格和表格的区域进行背景成像,而不是第二个表格中的灰色边框

使用以下代码

self.tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"Background.png"]];
要了解为分组
UITableView
read

设置背景图像的另一种方法,请使用以下代码

self.tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"Background.png"]];
为分组
UITableView
read设置背景图像的另一种方法

而不是将背景图像提供给表格。为单元格提供背景图像/颜色

而不是将背景图像提供给表格。为单元格提供背景图像/颜色


但是它也为分组表添加了侧边图像,但它也为分组表添加了侧边图像在这里,我们要显示单元格的背景,而不是表视图。如果你知道只有一种方法可以找到解决方案,那么请保持安静。这里有数千种其他方法可以使用。是的,所以请应用我提供的解决方案。而不是投票和消磨时间。SF…这里我们想显示单元格的背景,而不是表格视图。您好,我读到了bhai。如果你知道只有一种方法可以找到解决方法,那就请保持安静。这里有成千上万种其他的方法可以使用。是的,所以请使用我提供的解决方法。而不是投票和消磨时间。SF。。。
cell.backgroundColor=[UIColor colorWithPatternImage:[UIImage  imageNamed:@"Background.png"]];

since colorWithPattern is very expensive which causes memory leak,avoid using colorWithPatternImage

instead you can use 
cell.backgroundColor=[UIColor initWithRed:0.25 green:0.25 blue:0.25 alpha:1];


//change the RGB as per the image