No Description

KXMainDetailThreeView.m 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // KXMainDetailThreeView.m
  3. // QBCS
  4. //
  5. // Created by kuxuan on 2017/6/6.
  6. // Copyright © 2017年 kuxuan. All rights reserved.
  7. //
  8. #import "KXMainDetailThreeView.h"
  9. @implementation KXMainDetailThreeView
  10. -(instancetype)initWithFrame:(CGRect)frame
  11. {
  12. if (self==[super initWithFrame:frame]) {
  13. [self setupUI];
  14. }
  15. return self;
  16. }
  17. -(void)setupUI
  18. {
  19. self.nameLabel=[[UILabel alloc]initWithFrame:CGRectMake(0, 15, self.frame.size.width, 15)];
  20. self.nameLabel.textColor=[UIColor KXColorWithHex:0x666666];
  21. self.nameLabel.font=FONT_SYS(12);
  22. self.nameLabel.textAlignment=NSTextAlignmentCenter;
  23. [self addSubview:self.nameLabel];
  24. self.detailLabel=[[UILabel alloc]initWithFrame:CGRectMake(0, self.frame.size.height-40, self.frame.size.width, 20)];
  25. self.detailLabel.textColor=[UIColor KXColorWithHex:0xe42a2a];
  26. self.detailLabel.textAlignment=NSTextAlignmentCenter;
  27. self.detailLabel.font=FONT_SYS(20);
  28. [self addSubview:self.detailLabel];
  29. }
  30. -(id)sharedThreeView
  31. {
  32. return self;
  33. }
  34. @end