[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"daohang_bg_ios7"] forBarMetrics:UIBarMetricsDefault];
设置导航图片
[[UINavigationBar appearance]setTintColor:[UIColor whiteColor]];
设置title字体颜色
[[UINavigationBar appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor],UITextAttributeTextColor, nil]];
设置左右按钮的颜色
本文介绍了如何使用Swift或Objective-C自定义iOS应用中的UINavigationBar样式,包括设置背景图片、标题文字颜色及左右按钮的颜色。

1161

被折叠的 条评论
为什么被折叠?



