12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- //
- // KXMainDetailThreeView.m
- // QBCS
- //
- // Created by kuxuan on 2017/6/6.
- // Copyright © 2017年 kuxuan. All rights reserved.
- //
- #import "KXMainDetailThreeView.h"
- @implementation KXMainDetailThreeView
- -(instancetype)initWithFrame:(CGRect)frame
- {
- if (self==[super initWithFrame:frame]) {
- [self setupUI];
- }
- return self;
- }
- -(void)setupUI
- {
- self.nameLabel=[[UILabel alloc]initWithFrame:CGRectMake(0, 15, self.frame.size.width, 15)];
- self.nameLabel.textColor=[UIColor KXColorWithHex:0x666666];
- self.nameLabel.font=FONT_SYS(12);
- self.nameLabel.textAlignment=NSTextAlignmentCenter;
- [self addSubview:self.nameLabel];
-
- self.detailLabel=[[UILabel alloc]initWithFrame:CGRectMake(0, self.frame.size.height-40, self.frame.size.width, 20)];
- self.detailLabel.textColor=[UIColor KXColorWithHex:0xe42a2a];
- self.detailLabel.textAlignment=NSTextAlignmentCenter;
- self.detailLabel.font=FONT_SYS(20);
- [self addSubview:self.detailLabel];
- }
- -(id)sharedThreeView
- {
- return self;
- }
-
- @end
|