【问题标题】:Tableview Height Adjustments for IOS11 with out Autolayout没有自动布局的 IOS11 的 Tableview 高度调整
【发布时间】:2017-09-24 02:06:51
【问题描述】:

我在 UiScrollview 中使用了 UiTableview,但我没有使用自动布局功能。我的 tableview 在最后切割/隐藏数据/行。我发现可以从 ios 11 动态调整高度

我试过了

self.tableView.rowHeight = UITableViewAutomaticDimension;
self.tableView.estimatedRowHeight = 44.0; // set to whatever your "average" cell height is

注意:我的应用程序中的所有表格都是这样的行为不端

但这对我没有帮助。任何人都可以建议我如何解决它 .Tnx 提前

【问题讨论】:

  • 能否附上截图并发布更多代码?

标签: objective-c uitableview uiscrollview ios11


【解决方案1】:

如果你使用 UITableViewAutomaticDimension ,也许你的单元格必须使用 AutoLayout。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-01
    • 2016-02-08
    • 2020-12-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多