我有以下代码:
- (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
if (indexPath.row == 10) {
tableView:heightForRowAtIndexPath // make the last row height = 100;
}
return cell;发布于 2014-10-18 19:17:00
你是说这个?
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
if (indexPath.row == 10) return 100.0;
return 44.0;
}https://stackoverflow.com/questions/26443332
复制相似问题