iOS 9 searchBar disappears from table header view when UISearchController is active

后端 未结 13 1309
無奈伤痛
無奈伤痛 2020-12-07 20:37

The structure:

View1 (click a button) -> present modally (MyModalView: UITableViewController)

MyModalView has UISearchController embedded. The searchBar of U

13条回答
  •  甜味超标
    2020-12-07 21:26

    It seems all of us got the same problem but they were solved in different ways. However none of the suggested answers worked for me :(. Nevertheless thank you all for your time.

    I got a solution that solved my problem. It is setting Extend Edges - Under Opaque Bars of my (MyModalView: UITableViewController) to true in the Storyboard using Interface Builder.

    In summary:

    MyModalView: UITableViewController, in Storyboard using Interface Builder has

    Extend Edges: - Under Top Bars ticked - Under Bottom Bars ticked - Under Opaque Bars ticked

提交回复
热议问题