Created
October 1, 2012 18:44
-
-
Save swarut/3813646 to your computer and use it in GitHub Desktop.
Objective-C : Set custom font to all labels in view controller #objective-c #font #customfont #label
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defaultFont = [UIFont fontWithName:@"Bariol" size:14.0]; | |
| for(UIView *aView in [[self view] subviews]){ | |
| if([aView isKindOfClass:[UILabel class]]){ | |
| [((UILabel*)aView) setFont:defaultFont]; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment