// // MyPaperTableViewCell.m // ChinaTheoryNetwork // // Created by 张毅成 on 2019/4/3. // Copyright © 2019 张毅成. All rights reserved. // #import "MyPaperTableViewCell.h" @implementation MyPaperTableViewCell - (void)awakeFromNib { [super awakeFromNib]; self.labelType.layer.cornerRadius = 4.0f; self.labelType.layer.masksToBounds = true; self.labelType.layer.borderColor = kMainColor.CGColor; self.labelType.layer.borderWidth = 1.0f; [self.buttonBuy setCornerIcon]; } + (instancetype)cellWithTableView:(UITableView *)tableView AndIndex:(NSInteger)index { NSString *ID = [NSString stringWithFormat:@"MyPaperTableViewCell%ld",(long)index]; MyPaperTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:ID]; if (cell == nil) { cell = [[NSBundle mainBundle] loadNibNamed:@"MyPaperTableViewCell" owner:self options:nil][index]; } cell.selectionStyle = UITableViewCellSelectionStyleNone; return cell; } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } @end