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
Post a Comment