How to change UINavigationBar background with image on some views but not all?
问题 I would like to set an image as UINavigationController background but most solutions I found apply background in navigation bar for all views in the app. Can you give some code that may help ? Thx for helping, Stephane 回答1: Here's a quick and dirty way that I use in one of my projects (I have no need to support landscape orientation). I implemented it with a category to UINavigationBar with method swizzling. Works on iOS 4 and 5 (I didn’t try it on iOS 3). UINavigationBar+SYCustomBackground.h