UISearchBarDisplayController - Fixed SearchBar

Posted by slik on Stack Overflow See other posts from Stack Overflow or by slik
Published on 2014-08-19T04:15:20Z Indexed on 2014/08/19 4:20 UTC
Read the original article Hit count: 140

I've been trying to get UISearchBarDisplayController to not animate, and stay fixed below the navigation bar. Is this even possible, I've been getting some weird results.

This is all configured through a storyboard. I am just trying to figure out If I should just create my own implementation of UISearchBarDisplayController since it kinda seems a little impossible to customize it to my need.

enter image description here

Clicking the search box

enter image description here

When I start searching the top has extra paddding (20pt). It's assuming its on top of the origin y: 0 to prevent overlapping of status bar. I can't click outside or the cancel, x buttons.

enter image description here

What happens If I click cancel, before searching

enter image description here

© Stack Overflow or respective owner

Related posts about ios

Related posts about uitableview