BillCell.m 1021 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // BillCell.m
  3. // yunbaolive
  4. //
  5. // Created by ybRRR on 2020/2/6.
  6. // Copyright © 2020 cat. All rights reserved.
  7. //
  8. #import "BillCell.h"
  9. @implementation BillCell
  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. +(BillCell*)cellWithTab:(UITableView *)tableView andIndexPath:(NSIndexPath *)indexPath{
  19. BillCell *cell = [tableView dequeueReusableCellWithIdentifier:@"BillCell"];
  20. if (!cell) {
  21. cell = [[[NSBundle mainBundle]loadNibNamed:@"BillCell" owner:nil options:nil]objectAtIndex:0];
  22. }
  23. cell.backgroundColor = UIColor.whiteColor;
  24. return cell;
  25. }
  26. -(void)setInfoDic:(NSDictionary *)infoDic
  27. {
  28. self.priceLb.text = minstr([infoDic valueForKey:@"balance"]);
  29. self.timeLb.text = minstr([infoDic valueForKey:@"addtime"]);
  30. self.statusLb.text = minstr([infoDic valueForKey:@"result"]);
  31. }
  32. @end