symbolCell.m 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. [super awakeFromNib];
  12. // Initialization code
  13. }
  14. -(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
  15. {
  16. self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
  17. if (self)
  18. {
  19. _image = [[UIImageView alloc] initWithFrame:SGRectMake(10, 12, 30, 25)];
  20. [self.contentView addSubview:_image];
  21. _titleLabel = [[UILabel alloc] initWithFrame:SGRectMake(50, 15, 200, 20)];
  22. [self.contentView addSubview:_titleLabel];
  23. _countLabel = [[UILabel alloc] initWithFrame:SGRectMake(270, 15, 40, 20)];
  24. [self.contentView addSubview:_countLabel];
  25. [self setAccessoryType:UITableViewCellAccessoryDetailButton];
  26. }
  27. return self;
  28. }
  29. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  30. [super setSelected:selected animated:animated];
  31. // Configure the view for the selected state
  32. }
  33. @end