UIFont *font = [UIFont fontWithName:@"Arial-ItalicMT" size:21];
NSDictionary *dic = @{NSFontAttributeName:font,
NSForegroundColorAttributeName: [UIColor whiteColor]};
self.navigationController.navigationBar.titleTextAttributes =dic;
本文介绍如何使用 UIFont 和 NSDictionary 设置 iOS 应用程序中导航栏的字体样式和颜色。
UIFont *font = [UIFont fontWithName:@"Arial-ItalicMT" size:21];
NSDictionary *dic = @{NSFontAttributeName:font,
NSForegroundColorAttributeName: [UIColor whiteColor]};
self.navigationController.navigationBar.titleTextAttributes =dic;
675

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