iPhone system font

前端 未结 12 532
日久生厌
日久生厌 2020-12-12 18:31

What is the name of the default system font on the iPhone?

I would like to retrieve this for customizing a UIView.

12条回答
  •  离开以前
    2020-12-12 19:16

    UIFont *systemFont = [UIFont systemFontOfSize:[UIFont systemFontSize]];
    

    This will give you the system font with the default system font size applied for the label texts by default.

提交回复
热议问题