Created
December 2, 2011 19:13
-
-
Save ecpplus/1424457 to your computer and use it in GitHub Desktop.
UINavigationController で、バーの背景画像を設定(iOS5以降)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// グラデーションがうざいとき、単色画像とか設定すればいい | |
UINavigationBar *navBar = [[self navigationController] navigationBar]; | |
UIImage *backgroundImage = [UIImage imageNamed:@"someBackgroundImage"]; | |
[navBar setBackgroundImage:backgroundImage forBarMetrics:UIBarMetricsDefault]; | |
// tintColor で色を指定すると、ボタン類の色が変わるので一緒に設定すること | |
navBar.tintColor = [UIColor redColor]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment