//
//  FindNews2Cell.m
//  Open
//
//  Created by 雷俊博 on 2020/6/3.
//  Copyright © 2020 黄江涛 . All rights reserved.
//

#import "FindNews2Cell.h"

@interface FindNews2Cell ()


@property (nonatomic, strong)UIImageView* leftImg;

@property (nonatomic, strong)UILabel* lb_message;

@end



@implementation FindNews2Cell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self addSubview:self.leftImg];
        [self addSubview:self.lb_message];
    }
    return self;
}

#pragma mark - getters and setters
- (UIImageView *)leftImg
{
    if (!_leftImg) {
        _leftImg = [[UIImageView alloc]initWithFrame:CGRectMake(15 * WIDTHRADIU, 0, 100 * WIDTHRADIU, 90 * WIDTHRADIU)];
        _leftImg.backgroundColor = [UIColor redColor];
    }
    return _leftImg;
}

-(UILabel *)lb_message
{
    if (!_lb_message) {
        _lb_message = [[UILabel alloc]initWithFrame:CGRectMake(125 * WIDTHRADIU, 2 * WIDTHRADIU, ScreenWidth - 140 * WIDTHRADIU, 48 * WIDTHRADIU)];
        _lb_message.numberOfLines = 0;
        _lb_message.attributedText =  [[NSMutableAttributedString alloc] initWithString:@"上海市疾控中心: 最多一天入境人员达到235例" attributes:@{NSFontAttributeName: [UIFont fontWithName:@"PingFang SC" size: 16 * WIDTHRADIU],NSForegroundColorAttributeName: [UIColor colorWithHex:0x4d4d4d]}];
    }
    return _lb_message;
}
- (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
