- (void)viewDidLoad { [super viewDidLoad]; [self setFontFamily:@"FagoOfficeSans-Regular" forView:self.view andSubViews:YES]; } -(void)setFontFamily:(NSString*)fontFamily forView:(UIView*)view andSubViews:(BOOL)isSubViews { if ([view isKindOfClass:[UILabel class]]) { UILabel *lbl = (UILabel *)view; [lbl setFont:[UIFont fontWithName:fontFamily size:[[lbl font] pointSize]]]; } if (isSubViews) { for (UIView *sview in view.subviews) { [self setFontFamily:fontFamily forView:sview andSubViews:YES]; } } }
- 浏览: 1874099 次
- 性别:
- 来自: 北京
最新评论
-
wangyudong:
Wisdom RESTClient工具地址更新了哦https: ...
前端模拟POST发送数据-Chrome下的REST Client(接口测试利器) -
wangyudong:
很多REST Client是不支持自动化测试RESTful A ...
前端模拟POST发送数据-Chrome下的REST Client(接口测试利器) -
higkoo:
一个非常棒的系统,要是能支持LDAP等开源认证就完美了。
Cynthia 是个问题管理/BUG管理/任务管理/项目管理系统。 -
寻光之旅:
标签库使用有啥好处呢?
thinkphp 使用标签库的步骤 -
lgdjy123:
Android:TextView属性大全
相关推荐
After thoroughly exercising the language's features, you'll dig into the capabilities of the iOS frameworks by building a real-world app, from a simple button to a multi-screen client that cleanly ...
How to be a Programmer: Community Version Robert L. Read with Community Copyright 2002, 2003, 2016 Robert L. Read Licensed under Creative Commons Attribution-ShareAlike 4.0 International License. ...
The StoreSearch app One of the most common things that mobile apps do...Apple has made a web service available for searching the entire iTunes store and you’ll be using that to learn about networking.
Through this comprehensive one-stop guide, you'll get to grips with the entire UIKit framework and in a flash, you'll be creating modern user interfaces for your iOS devices using Swift. Starting ...
Using Gradle makes it easy for Android developers to manage dependencies and set up the entire build process., This book begins by taking you through the basics of Gradle and how it works with ...
Starting with an overview of the iOS drawing system and the available tools, you will then learn how to use these technologies to create adaptable layouts and custom elements for your applications....
This guide to will get you up and running with the entire workflow to develop Apple apps without previous Xcode experience Packed with plenty of tips on how to use Xcode with Swift 2 and other ...
But if you want to build a great app, there’s a lot more to it than simple coding: you also need to know how design and market your creation. This easy-to-follow guide walks you through the entire ...
How to set the highly-configurable options for UltraEdit's integrated spell checker Special functions UltraEdit includes several special functions under the File menu. You can use these functions to ...
This guide to will get you up and running with the entire workflow to develop Apple apps without previous Xcode experience * Packed with plenty of tips on how to use Xcode with Swift 2 and other ...
It may not be a terribly good idea to change the font, add some ads, and submit to Apple, though. #### Contributors * Danqing Liu (me) * [Scott Matthewman](https://github.com/scottmatthewman) * ...
The Executive’s How-To Guide to Automation: Mastering AI and Algorithm-Driven Business By 作者: George E. Danner ISBN-10 书号: 3319997882 ISBN-13 书号: 9783319997889 Edition 版本: 1st ed. 2019 出版...
The book is meant to be used as a learning tool, it’s filled with over 35 hands-on exercises and four chapters dedicated to learning how to make four different game types. Once you have completed the...