fonts - 原生 UITabBarItem 上使用的字体设置是什么

标签 fonts uitabbaritem

我正在尝试复制在 UITabBarItem 上使用的天真字体设置,以便在自定义标签栏上使用。

有谁知道字体设置是什么?什么 UIFont、字体大小、文本颜色等...?

最佳答案

我使用以下设置来复制 native 字体:

UILabel* tabBarItemLabel = [[[UILabel alloc] init] autorelease];
tabBarItemLabel.font = [UIFont boldSystemFontOfSize:10];
tabBarItemLabel.textColor = [UIColor colorWithRed:153.0/255.0 green:153.0/255.0 blue:153.0/255.0 alpha:1];
tabBarItemLabel.shadowColor = [UIColor clearColor];
tabBarItemLabel.backgroundColor = [UIColor clearColor];

关于fonts - 原生 UITabBarItem 上使用的字体设置是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6332544/

相关文章:

iphone - 如何获得 UITabBarItem 的宽度?

ios - 当在 Xcode 11、beta 2 的 Interface Builder 中指定条形色调颜色时,UITabBarItem 图标未针对 iOS 13 正确着色

ios - UITabBarItem 标签中的多行

html - 加载本地文件时阻止跨源请求

android - 如何在 Android 中解决 Bangla 字体中的 jukto(连接)单词?

css - 在 SASS 中更改 fonts.com 导入的字体系列

css - 字体图标 - 如何检索符号代码?

css - Twitter Bootstrap 和优雅的图标呈现双图标

iOS:UITabbar 中类似 iTunes 的角标(Badge)

ios - 检查弃用警告和新方法