SelPeopleCell.m 984 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // SelPeopleCell.m
  3. // YBVideo
  4. //
  5. // Created by YunBao on 2018/7/25.
  6. // Copyright © 2018年 cat. All rights reserved.
  7. //
  8. #import "SelPeopleCell.h"
  9. @implementation SelPeopleCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. _iconBtn.userInteractionEnabled = NO;
  13. }
  14. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  15. [super setSelected:selected animated:animated];
  16. }
  17. +(SelPeopleCell*)cellWithTab:(UITableView *)tableView andIndexPath:(NSIndexPath*)indexPath {
  18. SelPeopleCell *cell = [tableView dequeueReusableCellWithIdentifier:@"SelPeopleCell"];
  19. if (!cell) {
  20. cell = [[[NSBundle mainBundle]loadNibNamed:@"SelPeopleCell" owner:nil options:nil]objectAtIndex:0];
  21. }
  22. cell.iconBtn.layer.masksToBounds = YES;
  23. cell.iconBtn.layer.cornerRadius = cell.iconBtn.width/2;
  24. return cell;
  25. }
  26. - (IBAction)clickIconBtn:(UIButton *)sender {
  27. //预留 (使用更改-awakeFromNib-userInteractionEnableds属性)
  28. }
  29. @end