MyPaperTableViewCell.m 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // MyPaperTableViewCell.m
  3. // ChinaTheoryNetwork
  4. //
  5. // Created by 张毅成 on 2019/4/3.
  6. // Copyright © 2019 张毅成. All rights reserved.
  7. //
  8. #import "MyPaperTableViewCell.h"
  9. @implementation MyPaperTableViewCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. self.labelType.layer.cornerRadius = 4.0f;
  13. self.labelType.layer.masksToBounds = true;
  14. self.labelType.layer.borderColor = kMainColor.CGColor;
  15. self.labelType.layer.borderWidth = 1.0f;
  16. [self.buttonBuy setCornerIcon];
  17. }
  18. + (instancetype)cellWithTableView:(UITableView *)tableView AndIndex:(NSInteger)index {
  19. NSString *ID = [NSString stringWithFormat:@"MyPaperTableViewCell%ld",(long)index];
  20. MyPaperTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
  21. if (cell == nil) {
  22. cell = [[NSBundle mainBundle] loadNibNamed:@"MyPaperTableViewCell" owner:self options:nil][index];
  23. }
  24. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  25. return cell;
  26. }
  27. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  28. [super setSelected:selected animated:animated];
  29. // Configure the view for the selected state
  30. }
  31. @end