【问题标题】:UItableView with searchDisplayController changed the contentoffset when scrolling in ios7带有 uisearchDisplayController 的 UItableView 在 ios 7 中滚动时更改了 contentoffset
【发布时间】:2014-03-13 07:54:23
【问题描述】:

我有UITableViewsearchDisplayController 作为表headerView(不是节标题)。 contenoffset 第一次是 :{0, 0} 这是正确的。但是当向上和向下滚动时,我控制台上的最后一个 contentOffset 值是:{0,44}。为什么会发生?请帮帮我..

【问题讨论】:

  • contentOffset 已更改,因为我看不到我的搜索栏(位于导航栏后面)。

标签: objective-c uitableview ios7 uisearchdisplaycontroller


【解决方案1】:

在 ios7 中,不要直接将“tableHeaderView”设置为“UISearchBar”。首先我将“UISearchBar”添加到纯“UIView”,然后将“tableHeaderView”设置为纯“UIView”。我解决了我的问题。 ..

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-08
    • 1970-01-01
    • 2013-12-10
    相关资源
    最近更新 更多