Check the search bar's AutoLayout/AutoResizingMask settings.
Also make sure you're not manually modifying the bar's frame as the system will try to animate the bar into its position along the dimmed view and results' table view.
When you set the translucent
property and automaticallyAdjustsScrollViewInsets
to YES
(default): a) the view gets stretched under the navigation bar and b) a top contentInset
is added to the underlying UIScrollView
(table view is a subclass).
My guess is that only b) is happening in your case for some reason. You can try to solve it by either:
- Clear
automaticallyAdjustsScrollViewInsets
. - Removing the automatically added
contentInset
from your scroll view. - Setting your controller to do a) even with opaque bars by setting
extendedLayoutIncludesOpaqueBars
.