答案 0 :(得分:2)
要将整体背景图像设置为 UITableView ,请使用以下代码
var backGroundImage: UIImageView = UIImageView(image: UIImage(named: "backGroundImage.png"))
self.tableView.backgroundView = backGroundImage
答案 1 :(得分:0)
NSString *banname = @"14613036182de40e0d504f583cda7465979f958a98.jpg";
NSString *strImageUrl = [NSString stringWithFormat:@"%@",banname];
strImageUrl = [strImageUrl stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
[cell.imgView sd_setImageWithURL:[NSURL URLWithString:strImageUrl]
placeholderImage:[UIImage imageNamed:@"placeholder"]];
答案 2 :(得分:0)
您需要更改Tableview的背景颜色属性:clear background