| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 | ////  GoodsSizeSelectTableV.m//  westkissMob////  Created by 王猛 on 2022/9/22.//#import "GoodsSizeSelectTableV.h"@implementation GoodsSizeSelectTableV- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{     NSObject *objectM =  self.infodata[indexPath.row];    if([objectM isKindOfClass:[OptionsModel class]]){        GoosSizeSelectCell *cell = [GoosSizeSelectCell cellWithTableView:tableView CellClass:[GoosSizeSelectCell class]];        [cell configData:(OptionsModel *)objectM];        @weakify(self)        cell.currencyparameterClose = ^(NSInteger type, id Data) {            @strongify(self)            [self generaltriggermethodType:indexPath.row data:(OptionsModel *)Data];        };        return cell;    }else if([objectM isKindOfClass:[GoodsSizeCountCellData class]]){        GoodsSizeCountCell *cell = [GoodsSizeCountCell cellWithTableView:tableView CellClass:[GoodsSizeCountCell class]];        [cell configData:(GoodsSizeCountCellData *)objectM];        cell.currencyparameterClose = ^(NSInteger type, id Data) { //0- ,1+            [self generaltriggermethodType:type data:(NSString *)Data];        };        return cell;    }else if([objectM isKindOfClass:[GoodsSizePayMentCellData class]]){        GoodsSizePayMentCell *cell = [GoodsSizePayMentCell cellWithTableView:tableView CellClass:[GoodsSizePayMentCell class]];        [cell configData:(GoodsSizePayMentCellData *)objectM];        cell.currencyparameterClose = ^(NSInteger type, id Data) {            [self generaltriggermethodType:type data:(NSString *)Data];        };        return cell;    }    return nil;}- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{    return UITableViewAutomaticDimension;}- (CGFloat)tableView:(UITableView *)tableView estimatedHeightForRowAtIndexPath:(NSIndexPath *)indexPath{    return 20+18+10+32+10;}@end
 |