ClubApplicationTableViewCell.m 1.1 KB

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