symbolCell.m 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // symbolCell.m
  3. // jiaPei
  4. //
  5. // Created by apple on 16/1/5.
  6. // Copyright © 2016年 JCZ. All rights reserved.
  7. //
  8. #import "symbolCell.h"
  9. @implementation symbolCell
  10. - (void)awakeFromNib {
  11. // Initialization code
  12. [super awakeFromNib];
  13. }
  14. -(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
  15. {
  16. self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
  17. if (self)
  18. {
  19. self.backgroundColor = backGroundColor;
  20. _image = [[UIImageView alloc] initWithFrame:SGRectMake(10, 12, 30, 25)];
  21. [self.contentView addSubview:_image];
  22. _titleLabel = [[UILabel alloc] initWithFrame:SGRectMake(50, 15, 200, 20)];
  23. [self.contentView addSubview:_titleLabel];
  24. _countLabel = [[UILabel alloc] initWithFrame:SGRectMake(270, 15, 40, 20)];
  25. [self.contentView addSubview:_countLabel];
  26. [self setAccessoryType:UITableViewCellAccessoryDetailButton];
  27. }
  28. return self;
  29. }
  30. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  31. [super setSelected:selected animated:animated];
  32. // Configure the view for the selected state
  33. }
  34. @end