YXDeviceListHeaderView.m 619 B

12345678910111213141516171819202122232425
  1. //
  2. // YXDeviceListHeaderView.m
  3. // Temperature
  4. //
  5. // Created by z on 2025/1/17.
  6. //
  7. #import "YXDeviceListHeaderView.h"
  8. @implementation YXDeviceListHeaderView
  9. - (id)initWithFrame:(CGRect)frame
  10. {
  11. if (self = [super initWithFrame:frame])
  12. {
  13. self.backgroundColor = [UIColor colorWithHexString:@"#F9F9F9"];
  14. self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(5, 5, SCREEN_WIDTH - 80, 20)];
  15. self.titleLabel.font = [UIFont boldSystemFontOfSize:14];
  16. self.titleLabel.textAlignment = NSTextAlignmentLeft;
  17. [self addSubview:self.titleLabel];
  18. }
  19. return self;
  20. }
  21. @end