I've added a UISearchBar
into the navigation bar which it's visible when the user taps a certain button. Also, I've linked programmatically a UISearchDisplayController
. The background color for the search bar is transparent.
My problem is that when the black semi-transparent overlay it's tapped and the UISearchDisplayController
becomes inactive, I see a very ugly search bar animation: it stretches to full size (not showing cancel button anymore) and applying some kind o grey background.
When the user taps the cancel button in order to UISearchDisplayController
become inactive everything it's fine.
Does anyone have a solution for my problem?
Thanks.