RQHomeSubPageListViewController.m 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // RQHomeSubPageListViewController.m
  3. // SDJK
  4. //
  5. // Created by 张嵘 on 2021/8/4.
  6. //
  7. #import "RQHomeSubPageListViewController.h"
  8. @interface RQHomeSubPageListViewController ()
  9. // viewModel
  10. @property (nonatomic, readwrite, strong) RQHomeSubPageListViewModel *viewModel;
  11. @end
  12. @implementation RQHomeSubPageListViewController
  13. @dynamic viewModel;
  14. #pragma mark - SystemMethod
  15. - (void)viewDidLoad {
  16. [super viewDidLoad];
  17. // Do any additional setup after loading the view.
  18. }
  19. #pragma mark - OverrideMethods
  20. - (UITableViewCell *)tableView:(UITableView *)tableView dequeueReusableCellWithIdentifier:(NSString *)identifier forIndexPath:(NSIndexPath *)indexPath {
  21. RQHomeSubPageListCell *cell = [RQHomeSubPageListCell cellWithTableView:tableView];
  22. return cell;
  23. }
  24. - (void)configureCell:(UITableViewCell *)cell atIndexPath:(NSIndexPath *)indexPath withObject:(id)object {
  25. RQHomeSubPageListCell *homeSubPageListCell = (RQHomeSubPageListCell *)cell;
  26. [homeSubPageListCell.numBtn setTitle:[NSString stringWithFormat:@"%ld", indexPath.row + 1] forState:UIControlStateNormal];
  27. [homeSubPageListCell bindViewModel:object];
  28. }
  29. @end