iphone - UiBarButtonItem background image not showing until first tap -


in appdelegate.m file have created following button style:

    uiimage *backbtnimage = [uiimage imagenamed:@"back.png"];     [[uibarbuttonitem appearance] setbackbuttonbackgroundimage: backbtnimage forstate: uicontrolstatenormal barmetrics: uibarmetricsdefault];     [[uibarbuttonitem appearance] setbackbuttonbackgroundimage: backbtnimage forstate: uicontrolstatehighlighted barmetrics: uibarmetricsdefault]; 

for reason background image shows on each view after space button is tapped once - loads everytime each view after that.

i've tried cleaning project no avail.

hmm, if running on simulator, try reseting content , settings, if doesnt work, know ios devices have issues caching, try changing photo name.png in both actual file , reference in xcode.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -