有没有办法改变你的应用程序的默认字体 [英] Is there a way to change default font for your application

查看:212
本文介绍了有没有办法改变你的应用程序的默认字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



另外,API [UIFont systemFontOfSize:]也使用系统字体。



有没有一种方法可以为整个应用程序重新定义它,而不是为表格,标签等设置字体?

解决方案

答案是否定的,你不能改变苹果的systemFont,你需要自己设置字体在你的控制。



最好的方法来设置整个iOS应用程序的默认字体,请检查下面的SO问题:

设置整个iOS应用程序的默认字体?
$ b

如何为整个iOS应用程序设置自定义字体,而无需指定大小



如何为整个应用程序设置自定义字体?


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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆