//
//  SMShowImageCell.m
//  SkinMagnifier
//
//  Created by nana on 2020/12/8.
//

#import "SMShowImageCell.h"



@interface SMShowImageCell()


@end

@implementation SMShowImageCell

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self setupUI];
    }
    return self;
}

- (void)setupUI {

    self.backgroundColor = [UIColor blackColor];
    self.iconImageView = [[UIImageView alloc] init];
    self.iconImageView.backgroundColor = [UIColor blackColor];
    self.iconImageView.layer.masksToBounds = YES;
    [self.contentView addSubview:self.iconImageView];
    [self.iconImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.bottom.right.mas_equalTo(0);
//        make.center.mas_equalTo(0);
//        make.width.height.mas_equalTo([[UIScreen mainScreen] bounds].size.width);
    }];
    
    self.titleLabel = [[UILabel alloc] init];
    self.titleLabel.font = [UIFont systemFontOfSize:17];
    self.titleLabel.text = @"日光图";
    self.titleLabel.textColor = [UIColor whiteColor];
    [self.contentView addSubview:self.titleLabel];
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(safaTop(53.5));
        make.centerX.mas_equalTo(0);
    }];
}
@end
