//
//  AgreeContentCell.m
//  Open
//
//  Created by 雷俊博 on 2020/1/7.
//  Copyright © 2020 黄江涛 . All rights reserved.
//

#import "AgreeContentCell.h"


@interface AgreeContentCell ()
{
    CGFloat margin;
}


@end

@implementation AgreeContentCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.contentLabel = [[UILabel alloc]init];
        self.contentLabel2 = [[YYLabel alloc]init];
        margin = 2;
        [self setUI];
    }
    return self;
}
- (void)setUI
{
    [self.contentView addSubview:self.contentLabel];
    [self.contentView addSubview:self.contentLabel2];
    _contentLabel.textColor = [UIColor colorWithHex:0x4d4d4d];
    _contentLabel.font = [UIFont systemFontOfSize:15];
    _contentLabel.numberOfLines = 0;
    _contentLabel2.textColor = [UIColor colorWithHex:0x4d4d4d];
    _contentLabel2.font = [UIFont systemFontOfSize:15];
    _contentLabel2.numberOfLines = 0;
    [_contentLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.offset(self->margin);
        make.left.right.offset(0);
        make.bottom.offset(-self->margin);
    }];
    
    [_contentLabel2 mas_makeConstraints:^(MASConstraintMaker *make) {
         make.top.offset(self->margin);
            make.left.right.offset(0);
               make.bottom.offset(-self->margin);
    }];
    
}


- (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
}

@end
