iOS自定义UITableViewCell行高(嵌套FlowLayout)

时间:2013-08-23 09:20:37

标签: ios uiview uiviewcontroller storyboard

我正在尝试将Flowlayout放入TableViewCell内容中。

一切正常,但我想根据FlowLayout高度设置动态行高。 使用下一个方法我们可以得到需要的大小。但是当我将其设置为不等于“44”的值时 - FlowLayout停止显示其内容。它仅适用于44像素。

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    return 44.0;
}

;

通过情节提要更改行高会产生相同的结果。那么是否可以控制嵌套FlowLayout的大小?

1 个答案:

答案 0 :(得分:0)

相关问题