【发布时间】:2013-12-26 07:40:51
【问题描述】:
我在 viewDidLoad 方法中为我的 UserCreationViewController
使用此代码NSDictionary *textAttributes = [NSDictionary dictionaryWithObjectsAndKeys:
[UIColor greenColor],NSForegroundColorAttributeName,
[UIColor blackColor],NSBackgroundColorAttributeName,nil];
self.navigationController.navigationBar.titleTextAttributes = textAttributes;
self.title = @"User Creation";
我想知道的是,我知道我可以将 UIColor 更改为 redColor、yellowColor(等),我该如何编写自定义的“颜色井”颜色。
换句话说如果此导航栏标题为从颜色井中挑选的自定义颜色,我该如何设置颜色?
【问题讨论】:
标签: objective-c ios7 xcode5