1234567891011121314151617181920212223242526272829303132333435363738394041 |
- //
- // ZBGoodDetailHeadView.m
- // ZBProject
- //
- // Created by 学丽 on 2019/3/27.
- // Copyright © 2019 ZB. All rights reserved.
- //
- #import "ZBGoodDetailHeadView.h"
- @implementation ZBGoodDetailHeadView
- -(instancetype)initWithFrame:(CGRect)frame
- {
- self =[super initWithFrame:frame];
- if (self) {
- [self addSubview:self.titleLabel];
- self.backgroundColor=[UIColor whiteColor];
- [ self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.right.top.mas_equalTo(0);
- make.height.mas_equalTo(self.mas_height);
-
- }];
-
-
- }
- return self;
- }
- -(UILabel *)titleLabel
- {
- if (!_titleLabel) {
- _titleLabel =[[UILabel alloc]init];
- _titleLabel.textAlignment=NSTextAlignmentCenter;
- _titleLabel.backgroundColor=[UIColor whiteColor];
- _titleLabel.font=[UIFont systemFontOfSize:16];
- _titleLabel.textColor=[UIColor YHColorWithHex:0x666666];
-
- }
- return _titleLabel;
- }
- @end
|