Skip to content

Instantly share code, notes, and snippets.

@radianttap
Created January 7, 2014 18:36
Show Gist options
  • Save radianttap/8304236 to your computer and use it in GitHub Desktop.
Save radianttap/8304236 to your computer and use it in GitHub Desktop.
Dynamic Type size for custom fonts
UIFontDescriptor *userFont = [UIFontDescriptor preferredFontDescriptorWithTextStyle:UIFontTextStyleBody];
float userFontSize = [userFont pointSize];
someLabelOrText.font = [UIFont fontWithName:@"CustomFont" size:userFontSize];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment