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: 192
        
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.

Clicking the search box

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.

What happens If I click cancel, before searching

© Stack Overflow or respective owner