MineEmptyIntroduceCell.m 815 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // MineEmptyIntroduceCell.m
  3. // KulexiuForTeacher
  4. //
  5. // Created by 王智 on 2022/6/29.
  6. //
  7. #import "MineEmptyIntroduceCell.h"
  8. @interface MineEmptyIntroduceCell ()
  9. @property (nonatomic, copy) EmptyIntroduceAction callback;
  10. @end
  11. @implementation MineEmptyIntroduceCell
  12. - (void)awakeFromNib {
  13. [super awakeFromNib];
  14. // Initialization code
  15. self.selectionStyle = UITableViewCellSelectionStyleNone;
  16. }
  17. - (void)emptyIntroduceCallback:(EmptyIntroduceAction)callback {
  18. if (callback) {
  19. self.callback = callback;
  20. }
  21. }
  22. - (IBAction)createIntroduce:(id)sender {
  23. if (self.callback) {
  24. self.callback();
  25. }
  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