ios - UISearchController search bar shifting down when presented -


issue: searchbar shifts down when presented. before presented, bar right below navigation bar.

more info:

  • the navigation bar uinavigationbar that's manually added uiviewcontroller through storyboard
  • most importantly, uiviewcontroller uses uipresentationcontroller create effect presented vc offset top , presenting vc scaled down , "behind" presented vc. shift not happen if don't use uipresentationcontroller.
  • searchcontroller.hidesnavigationbarduringpresentation = no

any ideas?

enter image description here

self.definespresentationcontext = yes; or self.edgesforextendedlayout = uirectedgenone;

on side not better add searchbar header of tableview.


Comments

Popular posts from this blog

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -