iPhone上的默认系统字体名称是什么?
我想要检索此自定义UIView
。
发布于 2011-05-19 11:26:11
我不确定是否有api来获取默认的系统字体名称。所以我的名字是这样的:
//get system default font
UILabel *label = [[UILabel alloc] init];
fontname = label.font.fontName;
[label release];
看起来很愚蠢,但它很管用。
发布于 2014-10-31 19:35:32
UIFont *systemFont = [UIFont systemFontOfSize:[UIFont systemFontSize]];
这将为您提供默认应用于标签文本的系统字体大小。
发布于 2019-07-22 14:27:30
iOS的默认字体是旧金山。有关更多详细信息,请参阅link
https://stackoverflow.com/questions/3838336
复制相似问题