【问题标题】:How to make imageview scroll along with tableview?如何使 imageview 与 tableview 一起滚动?
【发布时间】:2017-10-11 16:55:05
【问题描述】:

我创建了一个视图控制器,顶部有一个 ImageView,底部有一个 TableView。理想情况下,当 TableView 溢出时,我希望整个屏幕一起滚动。但实际上只有 tableview 会滚动,但 ImageView 会保持原样。我该如何解决?

下面是我的故事板截图。

【问题讨论】:

  • 最好将 imageview 添加到表视图的标题中。

标签: ios uitableview


【解决方案1】:

只需在 tableview 层次结构中找到 uitableviewcell 上方的 imageview。

【讨论】:

    猜你喜欢
    • 2020-08-13
    • 1970-01-01
    • 2013-02-25
    • 1970-01-01
    • 2017-08-25
    • 1970-01-01
    • 2021-05-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多