objective c - UIAppearance for UINavigationBar ios8 -


in application have implemented custom view in place of uinavigationbar. there 14-15 screens. repeatedly created top view fro each screen.

so while surfing solution avoid repetition. came across concept of uiappearance. don't know how implement it. have gone through basic concept of still confuse.

my top view bit different each screen. in 4-5 screens there 2 buttons(back button on left , call button right) 1 label in center.

then in other 4-5 screens there 2 buttons(cancel button on left , call button on right) 1 label in center.

then in other 2-3 screens there 2 buttons(side menu button on left , call button on right) 1 label , icon in center.

can tell me how achieve using uiappearance? in advance!

you can't set buttons via uiappearance. if setting titletextattributes on each page (for say, font, size , color), can via uinavigationbar appearance this:

[[uinavigationbar appearance] settitletextattributes:attributes]; 

the attributes pointer nsdictionary containing textattributes (nsfontattributename, nsforegroundcolorattributename etc.)


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -