我想知道iOS应用程序tableView中的systemFontSize是否是always文本标签也一样吗?这是取决于风格?
例如当我NSLog(@"%f",[UIFont systemFontSize]);
我已经14.0了这总是一样的吗?
更重要的是:如何在不更改字体系列的情况下更改字体大小(假设我的 plist 中有自己的字体)。
I tried:
cell.textLabel.font = [UIFont fontWithName:@"Sansation-Light" size:12.0];
但 UIFont 总是想要我的字体名称/系列。我怎样才能避免这种情况,并在所有屏幕上使用一种字体并仅更改大小?
系统字体说明如下:
+ (CGFloat)labelFontSize;//Returns the standard font size used for labels.
+ (CGFloat)buttonFontSize;//Returns the standard font size used for buttons.
+ (CGFloat)smallSystemFontSize;//Returns the size of the standard small system font.
+ (CGFloat)systemFontSize;//Returns the size of the standard system font.
您可以在没有字体系列的情况下更改字体大小,如下所示:
cell.textLabel.font = [UIFont systemFontOfSize:14];
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)