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

searchbarbackground

setsearchfieldbackgroundimage - transparent image setsearchfieldbackgroundimage


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -