12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- //
- // HelpHeaderView.m
- // jiaPei
- //
- // Created by apple on 16/8/17.
- // Copyright © 2016年 JCZ. All rights reserved.
- //
- #import "HelpHeaderView.h"
- @implementation HelpHeaderView
- -(instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier
- {
- self = [super initWithReuseIdentifier:reuseIdentifier];
- if (self) {
- self.contentView.backgroundColor = backGroundColor;
- self.contentView.layer.borderWidth = .5;
- self.contentView.layer.borderColor = KlineColor.CGColor;
- UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(60, 0, kSize.width - 80, 50)];
- [label setFont:[UIFont scaleSize:FontTitle]];
- [self.contentView addSubview:label];
- _titleLabel = label;
-
- UIImageView *secImage = [[UIImageView alloc] initWithFrame:CGRectMake(20, 15, 20, 20)];
- secImage.image = [UIImage imageNamed:@"location_more_arrow"];
- [self.contentView addSubview:secImage];
- _transformImg = secImage;
-
- UIButton *btn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, kSize.width, 50)];
- btn.backgroundColor = [UIColor clearColor];
- [self.contentView addSubview:btn];
- _transformBtn = btn;
- }
- return self;
- }
- /*
- // Only override drawRect: if you perform custom drawing.
- // An empty implementation adversely affects performance during animation.
- - (void)drawRect:(CGRect)rect {
- // Drawing code
- }
- */
- @end
|