我正在尝试复制在 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/