酷店

KDPDrawerListCell.m 944B

123456789101112131415161718192021222324252627282930
  1. //
  2. // KDPDrawerList.m
  3. // KuDianProject
  4. //
  5. // Created by 学丽 on 2019/7/8.
  6. // Copyright © 2019 KDP. All rights reserved.
  7. //
  8. #import "KDPDrawerListCell.h"
  9. @implementation KDPDrawerListCell
  10. -(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
  11. {
  12. self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
  13. if (self) {
  14. self.iconImg=[[UIImageView alloc]initWithFrame:CGRectMake(27, 16, 18, 17)];
  15. self.iconImg.backgroundColor=[UIColor colorWithHexString:LineColor];
  16. [self addSubview:self.iconImg];
  17. self.titleLabel=[[UILabel alloc]initWithFrame:CGRectMake(self.iconImg.right+10, 0, 100, 50)];
  18. self.titleLabel.text=@"名称";
  19. self.titleLabel.font=[UIFont systemFontOfSize:16];
  20. self.titleLabel.textColor=[UIColor colorWithHexString:fontColor];
  21. [self addSubview:self.titleLabel];
  22. }
  23. return self;
  24. }
  25. @end