cell.backgroundColor = [UIColor clearColor]; //cell的背景图
UIImageView *cellBgView = [[UIImageView alloc]initWithFrame:cell.frame];
cellBgView.image = [UIImage imageNamed:@"task_list_default"];
cell.backgroundView =cellBgView;
cell.backgroundColor = [UIColor clearColor]; //cell的背景图
UIImageView *cellBgView = [[UIImageView alloc]initWithFrame:cell.frame];
cellBgView.image = [UIImage imageNamed:@"task_list_default"];
cell.backgroundView =cellBgView;
本文标题:解决tableviewcell 背景图片 万能适配
本文链接:https://www.haomeiwen.com/subject/livnhxtx.html
网友评论