iOS 7+ UISearchBar cancel button has unwanted alpha on highlighted state -


i have uisearchbar cancel button. cancel button has custom backgroundimage normal , highlighted states sets in appdelegate:

[[uibarbuttonitem appearancewhencontainedin:[uisearchbar class], nil] setbackgroundimage:[<somenormalimage> resizableimagewithcapinsets:<someedges>] forstate:uicontrolstatenormal barmetrics:uibarmetricsdefault]; [[uibarbuttonitem appearancewhencontainedin:[uisearchbar class], nil] setbackgroundimage:[<somehighlightedimage> resizableimagewithcapinsets:<someedges>] forstate:uicontrolstatehighlighted barmetrics:uibarmetricsdefault]; 

everything works fine. images showing, except of highlighted state, backgroundimage showed unwanted alpha (opacity). when button highlighted, highlighted background blink , opacity changed. wasn't able find answers problem, how change appearance of cancel button (which working well).

thanks help.


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -