ios - UISearchBar and UISearchDisplayController background color -
i've added uisearchbar navigation bar it's visible when user taps button. also, i've linked programmatically uisearchdisplaycontroller. background color search bar transparent.
my problem when black semi-transparent overlay it's tapped , uisearchdisplaycontroller becomes inactive, see ugly search bar animation: stretches full size (not showing cancel button anymore) , applying kind o grey background.
when user taps cancel button in order uisearchdisplaycontroller become inactive it's fine.
does have solution problem?
thanks.
you can make custom background images:
[searchbar setbackgroundimage:[uiimage imagenamed:@"searchbarbackground"]]; [searchbar setscopebarbackgroundimage:[uiimage imagenamed:@"searchbarbackground"]]; [searchbar setsearchfieldbackgroundimage:[uiimage imagenamed:@"searchfieldbackgroundimage"] forstate:uicontrolstatenormal]; searchbarbackground

setsearchfieldbackgroundimage - transparent image 