myCollectionHeadView.m 727 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // myCollectionHeadView.m
  3. // jiaPeiC
  4. //
  5. // Created by apple on 16/6/20.
  6. // Copyright © 2016年 JCZ. All rights reserved.
  7. //
  8. #import "myCollectionHeadView.h"
  9. @implementation myCollectionHeadView
  10. -(instancetype)initWithFrame:(CGRect)frame{
  11. if (self =[super initWithFrame:frame]) {
  12. [self createUI];
  13. }
  14. return self;
  15. }
  16. -(void)createUI{
  17. TitleLable= [[UILabel alloc]initWithFrame:CGRectMake(0 , 0, kSize.width, 40)];
  18. TitleLable.textAlignment = NSTextAlignmentCenter;
  19. TitleLable.textColor = [UIColor orangeColor];
  20. TitleLable.font = [UIFont scaleSize:Font16];
  21. [self addSubview:TitleLable];
  22. }
  23. //这是头部
  24. -(void)setTextTitle:(NSString *)tit
  25. {
  26. TitleLable.text = tit;
  27. }
  28. @end