UItableviewcell.contentview.height未按预期返回

时间:2015-02-18 04:15:03

标签: ios uitableview

我有代码

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    if (indexPath.row == 9) {
        height = 124.0f;
    }
    return height;
}

cellForRowAtIndexPath为indexPath.row == 9

返回44.0f

为什么不返回124?

0 个答案:

没有答案