| 123456789101112131415161718192021222324252627282930313233 |
- //
- // RAHomeViewController+HomeTableDataSource.m
- // Apex And Drivers
- //
- // Created by Jack on 2018/6/1.
- // Copyright © 2018年 USAI. All rights reserved.
- //
- #import "RAHomeViewController+HomeTableDataSource.h"
- #import "RAOrderCell.h"
- #import "RAHomeOrderModel.h"
- @implementation RAHomeViewController (HomeTableDataSource)
- - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
- return [self orderSectionCount];
- }
- - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
- return [self orderCountForSection:section];
- }
- - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
-
- RAOrderCell *cell = [tableView dequeueReusableCellWithIdentifier:@"RAOrderCell" forIndexPath:indexPath];
- RAHomeOrderModel *order = [self orderModelForIndexPath:indexPath];
- cell.orderModel = order;
-
- return cell;
- }
- @end
|