【问题标题】:How to set UITableViewCell height Dynamically with its content size to fit?如何动态设置 UITableViewCell 高度及其内容大小以适应?
【发布时间】:2014-09-12 22:30:17
【问题描述】:

我想动态设置内容框架(即单元格中的 UILabel)和单元格,而不以编程方式设置任何 UIControl 的框架。

【问题讨论】:

  • 不可能,但祝你好运。

标签: iphone objective-c xcode ipad ios7


【解决方案1】:

用你到目前为止做了什么来详细说明你的问题,如果你要求增加表格视图单元格的高度,你可以使用下面的方法。

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-29
    • 2013-06-05
    • 1970-01-01
    • 2021-08-04
    • 1970-01-01
    • 2011-11-03
    相关资源
    最近更新 更多