给UITableViewCell添加选择后的背景图

来源:互联网 发布:淘宝退款会影响买家么 编辑:程序博客网 时间:2024/06/10 07:26

如果想在UITableViewCell添加选择后的背景图,方法如下

UIImageView *bag = [[UIImageViewalloc] init];

bag.image = [UIImageimageNamed:@"1.png"];

cell.selectedBackgroundView = bag;


0 0
原创粉丝点击