Ios Xcode UINavigationBar文本字体和颜色

Ios Xcode UINavigationBar文本字体和颜色,ios,xcode,fonts,colors,uinavigationbar,Ios,Xcode,Fonts,Colors,Uinavigationbar,我想更改我的UINavigationBar标题的颜色和字体。如何使用代码或界面生成器来实现这一点?这可能很简单,但我对xcode还不熟悉。感谢您的帮助。对于编码部分,您可以使用标签启动标题视图 UILabel *myLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 10, 40)]; [myLabel setFont:[UIFont fontWithName:@"Arial" size:12]]; [myLabel setTextCo

我想更改我的UINavigationBar标题的颜色和字体。如何使用代码或界面生成器来实现这一点?这可能很简单,但我对xcode还不熟悉。感谢您的帮助。

对于编码部分,您可以使用标签启动标题视图

UILabel *myLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 10, 40)];
[myLabel setFont:[UIFont fontWithName:@"Arial" size:12]];
[myLabel setTextColor:[UIColor whiteColor]];
[myLabel setText:@"My text here"];
[**your navigation bar**.topItem setTitleView:myLabel];
看看这个--