LogisticsCell.m 1004 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // LogisticsCell.m
  3. // yunbaolive
  4. //
  5. // Created by ybRRR on 2020/6/12.
  6. // Copyright © 2020 cat. All rights reserved.
  7. //
  8. #import "LogisticsCell.h"
  9. @implementation LogisticsCell
  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. +(LogisticsCell*)cellWithTab:(UITableView *)tableView andIndexPath:(NSIndexPath *)indexPath {
  19. LogisticsCell *cell = [tableView dequeueReusableCellWithIdentifier:@"LogisticsCell"];
  20. if (!cell) {
  21. cell = [[[NSBundle mainBundle]loadNibNamed:@"LogisticsCell" owner:nil options:nil]objectAtIndex:0];
  22. }
  23. return cell;
  24. }
  25. -(void)setDataDic:(NSDictionary *)dataDic
  26. {
  27. [self.thumbImg sd_setImageWithURL:[NSURL URLWithString:minstr([dataDic valueForKey:@"express_thumb"])]];
  28. self.titleLb.text = minstr([dataDic valueForKey:@"express_name"]);
  29. }
  30. @end