// // FKBasketMessageView.m // FirstLink // // Created by jack on 16/7/7. // Copyright © 2016年 FirstLink. All rights reserved. // #import "FKBasketMessageView.h" @implementation FKBasketMessageView - (instancetype)initWithFrame:(CGRect)frame{ if (self = [super initWithFrame:frame]) { [self addAllSubviews]; } return self; } - (void)addAllSubviews{ self.backgroundColor = [UIColorFromRGB(0x000000) colorWithAlphaComponent:0.7]; [self addSubview:self.titleLabel]; [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) { make.center.equalTo(self); }]; } - (UILabel *)titleLabel{ if (_titleLabel == nil) { _titleLabel = [[UILabel alloc]init]; _titleLabel.font = [UIFont systemFontOfSize:13]; _titleLabel.textColor = UIColorFromRGB(0xffffff); } return _titleLabel; } @end