Thursday, August 28, 2014

Using custom font in iOS

You can create custom font in Xcode using following steps :
  1. Import font type into your project (*.ttf file)
  2. Add “Fonts provided by application” key into plist of your project.
  3. Add custom font as an item array in “Fonts provided by application” key.
  4. Now, you can use font in label as :
    [lblName setFont:[UIFont fontWithName:@“CustomFontName” size:14.0]];

No comments:

Post a Comment