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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -