-(void)layoutSubviews
{
[super layoutSubviews];
for (UIControl *control in self.subviews){
if ([control isMemberOfClass:NSClassFromString(@"UITableViewCellEditControl")]){
for (UIView *v in control.subviews)
{
if ([v isKindOfClass: [UIImageView class]]) {
UIImageView *img=(UIImageView *)v;
if (self.selected) {
img.image=[UIImage imageNamed:@"选中"];
}else
{
img.image=[UIImage imageNamed:@"未选中"];
}
}
}
}
}
}
修改tableview开启多选编辑模式下选中按钮的图片
最新推荐文章于 2021-04-12 14:37:27 发布