Jak*_*kub 13 objective-c uifont ios
我想知道iOS app appView中的systemFontSize对于textLabel 是否总是相同的?这是取决于风格?
例如,当我 NSLog(@"%f",[UIFont systemFontSize]);得到14.0时.这总是一样的吗?
还有更多:如何在不更改font-family的情况下更改字体大小(假设我的plist中有自己的字体).
我试过了:
cell.textLabel.font = [UIFont fontWithName:@"Sansation-Light" size:12.0];
Run Code Online (Sandbox Code Playgroud)
但是UIFont总是想要我的fontname/family.我怎样才能避免这种情况,并且在我的所有屏幕上都有一种字体并且只改变尺寸?
Mal*_*ndi 30
系统字体描述如下:
+ (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.
Run Code Online (Sandbox Code Playgroud)
并且您可以更改字体大小而不使用如下字体系列:
cell.textLabel.font = [UIFont systemFontOfSize:14];
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
16796 次 |
| 最近记录: |