// // symbolCell.m // jiaPei // // Created by apple on 16/1/5. // Copyright © 2016年 JCZ. All rights reserved. // #import "symbolCell.h" @implementation symbolCell - (void)awakeFromNib { // Initialization code [super awakeFromNib]; } -(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; if (self) { self.backgroundColor = backGroundColor; _image = [[UIImageView alloc] initWithFrame:SGRectMake(10, 12, 30, 25)]; [self.contentView addSubview:_image]; _titleLabel = [[UILabel alloc] initWithFrame:SGRectMake(50, 15, 200, 20)]; [self.contentView addSubview:_titleLabel]; _countLabel = [[UILabel alloc] initWithFrame:SGRectMake(270, 15, 40, 20)]; [self.contentView addSubview:_countLabel]; [self setAccessoryType:UITableViewCellAccessoryDetailButton]; } return self; } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } @end