// // SelectCell.m // LNManager // // Created by EchoShacolee on 2017/6/23. // Copyright © 2017年 lee. All rights reserved. // #import "SelectCell.h" @implementation SelectCell - (void)awakeFromNib { [super awakeFromNib]; // Initialization code } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } -(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{ if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) { // self.selectedBackgroundView = [[UIView alloc]init]; } return self; } - (void)layoutSubviews { [super layoutSubviews]; for (UIControl *control in self.subviews) { if (![control isMemberOfClass:NSClassFromString(@"UITableViewCellEditControl")]){ continue; } for (UIView *subView in control.subviews) { if (![subView isKindOfClass: [UIImageView class]]) { continue; } // [subView setValue:COLOR_THEME forKey:@"tintColor"]; // UIImageView *imageView = (UIImageView *)subView; // if (self.selected) { // imageView.image = [UIImage imageNamed:@"ic_squSelect_h"]; // 选中时的图片 // } else { // imageView.image = [UIImage imageNamed:@"ic_squSelect"]; // 未选中时的图片 // } } } } @end