YBVipCell.m 894 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // YBVipCell.m
  3. // YBVideo
  4. //
  5. // Created by YB007 on 2019/11/20.
  6. // Copyright © 2019 cat. All rights reserved.
  7. //
  8. #import "YBVipCell.h"
  9. @implementation YBVipCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. // Initialization code
  13. }
  14. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  15. [super setSelected:selected animated:animated];
  16. // Configure the view for the selected state
  17. }
  18. +(YBVipCell *)cellWithTab:(UITableView *)table index:(NSIndexPath *)index {
  19. YBVipCell *cell = [table dequeueReusableCellWithIdentifier:@"YBVipCell"];
  20. if (!cell) {
  21. cell = [[[NSBundle mainBundle]loadNibNamed:@"YBVipCell" owner:nil options:nil]objectAtIndex:0];
  22. }
  23. cell.backgroundColor = [UIColor whiteColor];
  24. cell.contentView.backgroundColor = [UIColor whiteColor];
  25. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  26. return cell;
  27. }
  28. @end