SearchHistoryCell.m 863 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // SearchHistoryCell.m
  3. // YBVideo
  4. //
  5. // Created by YunBao on 2018/7/27.
  6. // Copyright © 2018年 cat. All rights reserved.
  7. //
  8. #import "SearchHistoryCell.h"
  9. @implementation SearchHistoryCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. }
  13. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  14. [super setSelected:selected animated:animated];
  15. }
  16. +(SearchHistoryCell*)cellWithTab:(UITableView *)tableView andIndexPath:(NSIndexPath*)indexPath {
  17. SearchHistoryCell *cell = [tableView dequeueReusableCellWithIdentifier:@"SearchHistoryCell"];
  18. if (!cell) {
  19. cell = [[[NSBundle mainBundle]loadNibNamed:@"SearchHistoryCell" owner:nil options:nil]objectAtIndex:0];
  20. cell.backgroundColor = UIColor.whiteColor;
  21. }
  22. return cell;
  23. }
  24. - (IBAction)clickDelBtn:(UIButton *)sender {
  25. self.delEvent(@"");
  26. }
  27. @end