【问题标题】:nested tableview with automatic dimension具有自动尺寸的嵌套表视图
【发布时间】:2018-12-29 06:19:03
【问题描述】:

我有一个TableView,它的单元格包含第二个TableView(嵌套TableView)。 内部 tableView 显示具有可变单元格高度的 cmets。用UITableView.automaticDimension 计算这个高度。 但主 tableView 无法正确计算它的单元格高度。 主 tableView 使用UITableView.automaticDimension 计算单元格高度。但是innerTableView没有显示在主tableView中。

【问题讨论】:

  • 不要嵌套,真的很难,用单tableview多section
  • 如果可能:提供您预期的用户界面
  • 我的测试项目分享下一个答案的cmets。
  • 如果使用section而不是Nested TableView,我的viewController将会是Massive,因为我的tableView有19个section!

标签: ios swift uitableview uitableviewautomaticdimension


【解决方案1】:

我的测试项目下载链接: dropbox.com/s/woieoi71t5kt66d/NestedTableViewTest%202.zip?dl=0

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-12-04
    • 1970-01-01
    • 2016-10-27
    • 2021-10-22
    • 2021-09-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多