Vikings
Vikings

Reputation: 2527

Navigation Bar Appearance

I am using the appearance protocol to change the appearance of all navigation bars in my application, and it works perfectly.

[[UINavigationBar appearance] setBackgroundImage:[ApplicationStyle navigationBarImage] forBarMetrics:UIBarMetricsDefault];

I do not want the navigation bar to change on the UIImagePickerController, but I want a clean way to accomplish this, any ideas?

Upvotes: 0

Views: 144

Answers (1)

Eric Qian
Eric Qian

Reputation: 2256

[[UINavigationBar appearanceWhenContainedIn:[UIImagePickerController class], nil] setBackgroundImage:nil forBarMetrics:UIBarMetricsDefault];

Upvotes: 3

Related Questions