-1

I am trying to implement UISearchDisplayController in my existing tableview but whenever i try to search it covers all the view. Please check the below screen shot more detail idea.

I am using xCode 7 Beta and iOS9 Simulator.

enter image description here enter image description here

Here when i start searching it covers all the screen.

enter image description here

I already search for this but none of the solution worked for me.

luk2302
  • 55,258
  • 23
  • 97
  • 137
Malav Soni
  • 2,739
  • 1
  • 23
  • 52

1 Answers1

0

Just tried a similar test project on Xcode 7 without auto layout and it works fine for me: enter image description here enter image description here

What exactly does your view hierarchy look like? Perhaps the top bar on your view is preventing the search bar from moving up?

John Martin
  • 1,502
  • 1
  • 14
  • 25
  • well my app is compatible for iOS 7 also so I guess i have to go with UISearchBar and UISearchDisplayController – Malav Soni Jul 14 '15 at 16:43
  • OK. Can you post screenshots of how your storyboard is set up (eg autolayout constraints) and what you have implemented in terms of UISearchDisplayDelegate? – John Martin Jul 14 '15 at 16:51
  • I am using AutoResizing not autolayout. I have just drag and drop uisearchdisplay controller in my tableview of uiviewcontroller and implement one delegate method of uiseach to filter data – Malav Soni Jul 14 '15 at 16:58
  • Have updated the original answer - can you share what your view hierarchy looks like on the storyboard? – John Martin Jul 15 '15 at 17:13