Strange UISearchDisplayController view offset behavior in iOS 7 when embedded in navigation bar

前端 未结 9 992
难免孤独
难免孤独 2020-12-14 03:13

I am building an iOS 7-only app. I am trying to set a UISearchDisplayController into the navigation bar.

I have it set up like this: In the storyboard, I added a \"

9条回答
  •  没有蜡笔的小新
    2020-12-14 03:42

    I had a same problem. And I solve this issue with adding view object under the tableview.

    1. Add new ViewController on the Storyboard
    2. Drag TableView to the new VC
    3. Drag Table Cell to the TableView
    4. Make a Connection for TableView DataSource, TableView Delegate to the new VC

提交回复
热议问题