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