ModelTVHeaderView.m 686 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // ModelTVHeaderView.m
  3. // JSJPCoach
  4. //
  5. // Created by apple on 2017/3/23.
  6. // Copyright © 2017年 Danson. All rights reserved.
  7. //
  8. #import "ModelTVHeaderView.h"
  9. @implementation ModelTVHeaderView
  10. // Only override drawRect: if you perform custom drawing.
  11. // An empty implementation adversely affects performance during animation.
  12. - (void)drawRect:(CGRect)rect {
  13. self.textLabel.frame = self.contentView.frame;
  14. [self.textLabel setFont:[UIFont scaleSize:Font17]];
  15. [self.textLabel setTextColor:newTitleColor];
  16. [self.textLabel setTextAlignment:NSTextAlignmentCenter];
  17. }
  18. -(void)layoutSubviews
  19. {
  20. [super layoutSubviews];
  21. self.textLabel.y = 2.5;
  22. }
  23. @end