http://code4app.com/ios/Different-Fonts-Label/4fbd9d556803fa174a000000
这篇文章介绍了 在一个UILabel中显示不同字体的文字,注意要导入CoreText.framework
在这个基础之上用 self.navigationItem.titleView=label;
label的类是 DetailTextView
创建一个uilabel把它添加到navigationbar的titleview,如果要对字体和颜色,大小进行设置,只需在uilabel中更改就可以
CGRect rect = CGRectMake(0, 0, 200, 44);
UILabel *label = [[UILabel alloc] initWithFrame:rect];
label.backgroundColor = [UIColor clearColor];
label.text = @"hhhhhhh";
label.adjustsFontSizeToFitWidth=YES;
self.navigationItem.titleView=label;