LearninglistTableViewCell.m 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // LearninglistTableViewCell.m
  3. // ChinaTheoryNetwork
  4. //
  5. // Created by 张毅成 on 2019/1/28.
  6. // Copyright © 2019 张毅成. All rights reserved.
  7. //
  8. #import "LearninglistTableViewCell.h"
  9. @implementation LearninglistTableViewCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. [self.imageViewIcon setCornerIcon];
  13. }
  14. + (instancetype)cellWithTableView:(UITableView *)tableView {
  15. static NSString *ID = @"LearninglistTableViewCell";
  16. LearninglistTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
  17. if (cell == nil) {
  18. cell = [[[NSBundle mainBundle] loadNibNamed:ID owner:self options:nil] firstObject];
  19. }
  20. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  21. return cell;
  22. }
  23. - (IBAction)didTouchButtonLike:(UIButton *)sender {
  24. if (self.blockDidTouchButtonLike) {
  25. self.blockDidTouchButtonLike();
  26. }
  27. }
  28. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  29. [super setSelected:selected animated:animated];
  30. // Configure the view for the selected state
  31. }
  32. @end