MoreSectionHeadView.m 851 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // MoreSectionHeadView.m
  3. // CGXVerticalMenuView-OC
  4. //
  5. // Created by CGX on 2018/05/01.
  6. // Copyright © 2021 CGX. All rights reserved.
  7. //
  8. #import "MoreSectionHeadView.h"
  9. @implementation MoreSectionHeadView
  10. - (instancetype)initWithFrame:(CGRect)frame
  11. {
  12. self = [super initWithFrame:frame];
  13. if (self) {
  14. self.titleLabel = [[UILabel alloc] init];
  15. self.titleLabel.textAlignment = NSTextAlignmentCenter;
  16. [self addSubview:self.titleLabel];
  17. self.titleLabel.textColor = [UIColor blackColor];
  18. }
  19. return self;
  20. }
  21. - (void)layoutSubviews
  22. {
  23. [super layoutSubviews];
  24. self.titleLabel.frame = self.bounds;
  25. }
  26. /*
  27. // Only override drawRect: if you perform custom drawing.
  28. // An empty implementation adversely affects performance during animation.
  29. - (void)drawRect:(CGRect)rect {
  30. // Drawing code
  31. }
  32. */
  33. @end