1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- //
- // FKProHeaderView.m
- // FirstLink
- //
- // Created by jack on 16/8/16.
- // Copyright © 2016年 FirstLink. All rights reserved.
- //
- #import "FKProHeaderView.h"
- @implementation FKProHeaderView
- - (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier{
- if (self = [super initWithReuseIdentifier:reuseIdentifier]) {
- [self addAllSubviews];
- }
- return self;
- }
- - (void)addAllSubviews{
-
- self.contentView.backgroundColor = [UIColor whiteColor];
-
- [self.contentView addSubview:self.titleLabel];
-
- [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(self.contentView).offset(15);
- make.centerY.equalTo(self.contentView);
- }];
- }
- - (UILabel *)titleLabel{
- if (_titleLabel == nil) {
- _titleLabel = [[UILabel alloc]init];
- _titleLabel.font = [UIFont systemFontOfSize:13];
- _titleLabel.textColor = UIColorFromRGB(0x333333);
- }
- return _titleLabel;
- }
- @end
|