12345678910111213141516171819202122232425262728293031323334 |
- //
- // RQUserInfoViewController.m
- // SDJK
- //
- // Created by 张嵘 on 2021/8/3.
- //
- #import "RQUserInfoViewController.h"
- @interface RQUserInfoViewController ()
- /// viewModel
- @property (nonatomic, readonly, strong) RQUserInfoViewModel *viewModel;
- @end
- @implementation RQUserInfoViewController
- @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 {
- RQCommonGroupViewModel *groupViewModel = self.viewModel.dataSource[indexPath.section];
- RQCommonItemViewModel *itemViewModel = groupViewModel.itemViewModels[indexPath.row];
- return [NSClassFromString(itemViewModel.itemClassName) cellWithTableView:tableView];
- }
- - (void)configureCell:(RQCommonCell *)cell atIndexPath:(NSIndexPath *)indexPath withObject:(id)object {
- [cell bindViewModel:object];
- }
- @end
|