GoodsReviewsListTableV.m 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // GoodsReviewsListTableV.m
  3. // Asteria
  4. //
  5. // Created by 王猛 on 2024/1/5.
  6. //
  7. #import "GoodsReviewsListTableV.h"
  8. @implementation GoodsReviewsListTableV
  9. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  10. GoodsReviewsListM *objectM = self.infodata[indexPath.row];
  11. GoodsReviewsCell *cell = [GoodsReviewsCell cellWithTableView:tableView CellClass:[GoodsReviewsCell class]];
  12. [cell configData:objectM];
  13. @weakify(cell)
  14. cell.currencyparameterClose = ^(NSInteger type, id Data) {
  15. @strongify(cell) //图片选择器展示
  16. };
  17. return cell;
  18. }
  19. - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
  20. return UITableViewAutomaticDimension;
  21. }
  22. - (CGFloat)tableView:(UITableView *)tableView estimatedHeightForRowAtIndexPath:(NSIndexPath *)indexPath{
  23. return 100;
  24. }
  25. - (void)configData:(id)Data{
  26. NSMutableArray <GoodsReviewsListM *>*tmpAry = Data;
  27. self.infodata = tmpAry;
  28. [self reloadData];
  29. }
  30. @end