-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
return self.array.count;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
NSLog(@"indexpath.row:%lu",indexPath.row);
static NSString *identity = @"UITableViewCell";
[self.tableView registerClass:[ApplyTableViewCell class] forCellReuseIdentifier:identity];
ApplyTableViewCell *applyCell = [self.tableView dequeueReusableCellWithIdentifier:identity forIndexPath:indexPath];
if (applyCell == nil) {
applyCell = [[ApplyTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identity];
}
_cell = applyCell;
_cell.showViewDelegate = self;
applyCell.replyArr = self.replyArr;
applyCell.model = self.array[indexPath.row];
return applyCell;
}
求解答