这个方法在iOS5以后可以这样用
navigationController.navigationBar.titleTextAttributes = [NSDictionary dictionaryWithObject:[UIColor yellowColor] forKey:UITextAttributeTextColor];
通过以下key值修改起属性
UITextAttributeFont
UITextAttributeTextShadowOffset
UITextAttributeTextShadowColor
navigationController.navigationBar.titleTextAttributes = [NSDictionary dictionaryWithObject:[UIColor yellowColor] forKey:UITextAttributeTextColor];
通过以下key值修改起属性
UITextAttributeFont
UITextAttributeTextShadowOffset
UITextAttributeTextShadowColor
本文介绍了一种在iOS 5及更高版本中自定义导航栏样式的简便方法,包括如何设置导航栏标题的颜色、字体以及阴影等属性。
1028

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



