// // RQHomeSubPageLocalTopicListViewController.m // SDJK // // Created by 张嵘 on 2021/10/15. // #import "RQHomeSubPageLocalTopicListViewController.h" @interface RQHomeSubPageLocalTopicListViewController () // viewModel @property (nonatomic, readwrite, strong) RQHomeSubPageLocalTopicListViewModel *viewModel; @end @implementation RQHomeSubPageLocalTopicListViewController @dynamic viewModel; #pragma mark - SystemMethod - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. } #pragma mark - OverrideMethods - (UITableViewCell *)tableView:(UITableView *)tableView dequeueReusableCellWithIdentifier:(NSString *)identifier forIndexPath:(NSIndexPath *)indexPath { RQHomeSubPageListCell *cell = [RQHomeSubPageListCell cellWithTableView:tableView]; return cell; } - (void)configureCell:(UITableViewCell *)cell atIndexPath:(NSIndexPath *)indexPath withObject:(id)object { RQHomeSubPageListCell *homeSubPageListCell = (RQHomeSubPageListCell *)cell; [homeSubPageListCell.numBtn setTitle:[NSString stringWithFormat:@"%ld", indexPath.row + 1] forState:UIControlStateNormal]; [homeSubPageListCell bindViewModel:object]; } @end