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?
self.definespresentationcontext = yes; or self.edgesforextendedlayout = uirectedgenone;
on side not better add searchbar header of tableview.
Comments
Post a Comment