Skip to content

Instantly share code, notes, and snippets.

@swarut
Created October 1, 2012 18:44
Show Gist options
  • Select an option

  • Save swarut/3813646 to your computer and use it in GitHub Desktop.

Select an option

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