iphone开发设置默认字体
2024-08-23 02:57:41
It seems to be possible in iOS 5 using the UIAppearance proxy.
[[UILabel appearance] setFont:[UIFont fontWithName:@"YourFontName" size:17.0]];
That will set the font to be whatever your custom font is for all UILabels in your app. You'll need to repeat it for each control (UIButton, UILabel, etc.).
Remember you'll need to put the UIAppFonts value in your info.plist and include the name of the font you're including.
http://stackoverflow.com/questions/8707082/set-a-default-font-for-whole-ios-app
最新文章
- 碳膜电阻+1N5408二极管?
- sharepoint 网站创建
- C#编程总结(十三)数据压缩
- hdu 1166 线段树单点更新
- shell中读写mysql数据库
- 如何在Ubuntu/CentOS上安装Linux内核4.0
- <;area>; 标签
- S3
- C# File
- Android The content of the adapter has changed but ListView did not receive a notification终极解决方法
- [改善Java代码]警惕数组的浅拷贝
- IE浏览器打开 「兼容性视图」
- java基础(二十一)IO流(四)
- Spring与SpringMVC的容器关系分析
- Window 10通过网线和Wifi连接树莓派
- Linux C语言遍历目录结构
- 关于CSS样式优先级学习心得
- 英语APP体验
- IntelliJ IDEA如何设置新建类时,自动注释作者信息和日期时间
- 对Unity的Resources目录进行改名