// // MONormalRightMenuCell.m // MiMoLive // // Created by SuperC on 2025/6/8. // #import "MONormalRightMenuCell.h" @implementation MONormalRightMenuCell - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) { self.selectionStyle = UITableViewCellSelectionStyleNone; self.backgroundColor = [UIColor clearColor]; [self setupUI]; } return self; } - (void)setupUI{ [self.contentView addSubview:self.contentLab]; [self.contentLab mas_makeConstraints:^(MASConstraintMaker *make) { make.edges.equalTo(self.contentView); }]; } - (void)setCellModel:(NSDictionary *)cellModel{ _cellModel = cellModel; NSString *nameStr = cellModel[@"name"]; self.contentLab.text = nameStr; } - (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 } - (UILabel *)contentLab{ if (!_contentLab) { _contentLab = [[UILabel alloc] init]; _contentLab.text = @""; _contentLab.font = [MOTextTools regularFont:13.0]; _contentLab.textColor = [MOTools colorWithHexString:@"#2D2D2D" alpha:1.0]; _contentLab.textAlignment = NSTextAlignmentCenter; _contentLab.numberOfLines = 1; } return _contentLab; } @end