12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- //
- // YOUPAILZReportCell.m
- // VQU
- //
- // Created by CY on 2021/6/30.
- // Copyright © 2021 leo. All rights reserved.
- //
- #import "YOUPAILZReportCell.h"
- @interface YOUPAILZReportCell ()
- @property (nonatomic, weak) UILabel *youpaipcontentL;
- @property (nonatomic, weak) UIImageView *youpaipselectedImgV;
- @end
- @implementation YOUPAILZReportCell
- - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
- if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
- self.backgroundColor = [UIColor clearColor];
- self.selectionStyle = UITableViewCellSelectionStyleNone;
-
- [self youpaifinitUI];
- }
- return self;
- }
- - (void)youpaifinitUI{
-
- UIImageView *selectedImgV = [[UIImageView alloc] init];
- [self.contentView addSubview:selectedImgV];
- self.youpaipselectedImgV = selectedImgV;
- [selectedImgV mas_makeConstraints:^(MASConstraintMaker *make) {
- make.right.offset(-14.0f);
- make.centerY.equalTo(self.contentView);
- make.size.mas_offset(CGSizeMake(15.0f, 15.0f));
- }];
-
- UILabel *contentL = [[UILabel alloc] init];
- contentL.font = LCFont14;
- contentL.textColor = LZ273145Color;
- [self.contentView addSubview:contentL];
- self.youpaipcontentL = contentL;
- [contentL mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.offset(14.0f);
- make.top.bottom.offset(0.0f);
- make.right.equalTo(selectedImgV.mas_left).offset(-14.0f);
- }];
-
- // [self.contentView addLineWithColor:HexColorFromRGB(0x28262D) lineRect:CGRectMake(20.0f, 53.5f, KScreenWidth - 40.0f, 0.5f)];
- }
- - (void)youpaifreloadWithModel:(YOUPAILCReportModel *)model{
- self.youpaipcontentL.text = model.youpaipname;
- self.youpaipselectedImgV.image = [UIImage imageNamed:model.youpaipisSelected ? @"vqu_images_D_report_selected" : @"vqu_images_D_report_none"];
- }
- @end
|