ios - Issued changing the navigationbar image? -


currently, able change tint of uinavigationbar

self.navigationcontroller.navigationbar.tintcolor  = [uicolor colorwithred:74/255.0f green:74/255.0f blue:74/255.0f alpha:1.0f]; 

however when try implement following code change image of uinavigationbar together, see no results..

 uiimage *navimagebackground = [[uiimage imagenamed:@"texturednav"] //this being .png image                                 resizableimagewithcapinsets:uiedgeinsetsmake(0, 0, 0, 0)];        [[uinavigationbar appearance] setbackgroundimage:navimagebackground                                        forbarmetrics:uibarmetricsdefault]; 

what doing wrong here?

you're calling appearance delegate after navigation bar on screen request being 'ignored'. or, @ least, not causing ui update.

set appearance before navigation bar shown. or, force ui refresh hiding , showing navigation bar (without animation).


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -