// // RADetailActionSelectionViewController+TableDataSource.m // Apex And Drivers // // Created by Jack on 2018/6/4. // Copyright © 2018年 USAI. All rights reserved. // #import "RADetailActionSelectionViewController+TableDataSource.h" #import "RADetailActionSelectionModel.h" #import "RADetailActionSelectionCell.h" @implementation RADetailActionSelectionViewController (TableDataSource) - (nonnull UITableViewCell *)tableView:(nonnull UITableView *)tableView cellForRowAtIndexPath:(nonnull NSIndexPath *)indexPath { RADetailActionSelectionCell *cell = [tableView dequeueReusableCellWithIdentifier:@"RADetailActionSelectionCell" forIndexPath:indexPath]; RADetailActionSelectionModel *model = [self.actions objectAtIndex:indexPath.row]; cell.model = model; return cell; } - (NSInteger)tableView:(nonnull UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return self.actions.count; } - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return 1; } @end