LoginRecomHeaderCollectReusView.m 914 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // LoginRecomHeaderCollectReusView.m
  3. // BuguLive
  4. //
  5. // Created by bugu on 2019/12/11.
  6. // Copyright © 2019 xfg. All rights reserved.
  7. //
  8. #import "LoginRecomHeaderCollectReusView.h"
  9. @implementation LoginRecomHeaderCollectReusView
  10. - (instancetype)initWithFrame:(CGRect)frame
  11. {
  12. self = [super initWithFrame:frame];
  13. if (self) {
  14. [self initUI];
  15. }
  16. return self;
  17. }
  18. - (void)initUI {
  19. _titleLabel= ({
  20. UILabel * label = [[UILabel alloc]init];
  21. label.textColor = [UIColor colorWithHexString:@"#999999"];
  22. label.font = [UIFont systemFontOfSize:14];
  23. label.text = ASLocalizedString(@"—— 热门主播 ——");
  24. label;
  25. });
  26. [self addSubview:_titleLabel];
  27. }
  28. - (void)layoutSubviews {
  29. [super layoutSubviews];
  30. [_titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  31. make.center.mas_equalTo(0);
  32. }];
  33. }
  34. @end