No Description

FKBasketMessageView.m 881B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // FKBasketMessageView.m
  3. // FirstLink
  4. //
  5. // Created by jack on 16/7/7.
  6. // Copyright © 2016年 FirstLink. All rights reserved.
  7. //
  8. #import "FKBasketMessageView.h"
  9. @implementation FKBasketMessageView
  10. - (instancetype)initWithFrame:(CGRect)frame{
  11. if (self = [super initWithFrame:frame]) {
  12. [self addAllSubviews];
  13. }
  14. return self;
  15. }
  16. - (void)addAllSubviews{
  17. self.backgroundColor = [UIColorFromRGB(0x000000) colorWithAlphaComponent:0.7];
  18. [self addSubview:self.titleLabel];
  19. [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  20. make.center.equalTo(self);
  21. }];
  22. }
  23. - (UILabel *)titleLabel{
  24. if (_titleLabel == nil) {
  25. _titleLabel = [[UILabel alloc]init];
  26. _titleLabel.font = [UIFont systemFontOfSize:13];
  27. _titleLabel.textColor = UIColorFromRGB(0xffffff);
  28. }
  29. return _titleLabel;
  30. }
  31. @end