HelpHeaderView.m 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //
  2. // HelpHeaderView.m
  3. // jiaPei
  4. //
  5. // Created by apple on 16/8/17.
  6. // Copyright © 2016年 JCZ. All rights reserved.
  7. //
  8. #import "HelpHeaderView.h"
  9. @implementation HelpHeaderView
  10. -(instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier
  11. {
  12. self = [super initWithReuseIdentifier:reuseIdentifier];
  13. if (self) {
  14. self.contentView.backgroundColor = backGroundColor;
  15. self.contentView.layer.borderWidth = .5;
  16. self.contentView.layer.borderColor = KlineColor.CGColor;
  17. UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(60, 0, kSize.width - 80, 50)];
  18. [label setFont:[UIFont scaleSize:FontTitle]];
  19. [self.contentView addSubview:label];
  20. _titleLabel = label;
  21. UIImageView *secImage = [[UIImageView alloc] initWithFrame:CGRectMake(20, 15, 20, 20)];
  22. secImage.image = [UIImage imageNamed:@"location_more_arrow"];
  23. [self.contentView addSubview:secImage];
  24. _transformImg = secImage;
  25. UIButton *btn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, kSize.width, 50)];
  26. btn.backgroundColor = [UIColor clearColor];
  27. [self.contentView addSubview:btn];
  28. _transformBtn = btn;
  29. }
  30. return self;
  31. }
  32. /*
  33. // Only override drawRect: if you perform custom drawing.
  34. // An empty implementation adversely affects performance during animation.
  35. - (void)drawRect:(CGRect)rect {
  36. // Drawing code
  37. }
  38. */
  39. @end