YBCitySelCell.m 919 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // YBCitySelCell.m
  3. // YBVideo
  4. //
  5. // Created by YB007 on 2020/10/17.
  6. // Copyright © 2020 cat. All rights reserved.
  7. //
  8. #import "YBCitySelCell.h"
  9. @implementation YBCitySelCell
  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. +(YBCitySelCell *)cellWithTab:(UITableView *)table index:(NSIndexPath *)index {
  19. YBCitySelCell *cell = [table dequeueReusableCellWithIdentifier:@"YBCitySelCell"];
  20. if (!cell) {
  21. cell = [[[NSBundle mainBundle]loadNibNamed:@"YBCitySelCell" 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