有没有办法改变你的应用程序的默认字体 [英] Is there a way to change default font for your application
问题描述
另外,API [UIFont systemFontOfSize:]也使用系统字体。
有没有一种方法可以为整个应用程序重新定义它,而不是为表格,标签等设置字体?
答案是否定的,你不能改变苹果的systemFont,你需要自己设置字体在你的控制。
最好的方法来设置整个iOS应用程序的默认字体,请检查下面的SO问题:
As I understand all standard controls use system font by default.
Also, API [UIFont systemFontOfSize: ] uses system font too.
Is there a way to redefine it for the whole application, instead of setting a font for table, labels and so on?
The answer is no, you cant change apple's systemFont, you need to set the font on your control yourself.
For best way to set a default font for whole iOS app, please check the below SO questions:
Set a default font for whole iOS app?
How to set a custom font for entire iOS app without specifying size
How do I set a custom font for the whole application?
Is there a simple way to set a default font for the whole app?
这篇关于有没有办法改变你的应用程序的默认字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!