I have tried deleted font from the xcode project and and copied again by dragging, but still custom font named "Helvetica-Neue-LT-Com-75-Bold-Outline.ttf" is not working on iphone 4 and 5c simulator but working in 5s simulator.
To set the font name to UILabel, I am using the name from fontbook app.
Go to File -> Settings -> Editor -> Font -> Size. Now Enter the suitable size and click Apply.
You can show touch indicators in the iOS simulator by opening Terminal and running defaults write com. apple. iphonesimulator ShowSingleTouches 1 . You can turn this setting off again by running defaults write com.
Follow this steps,it's work fine
1.Select the project
2.Select Targets->Build Phases->Copy Bundle Resoures->Click + Button->Add your Custom font
Like this:
Few things after including the font files in your project:
You can log all fonts by putting this on your app delegate's didFinishLaunchingWithOptions:
for (NSString* family in [UIFont familyNames])
{
NSLog(@"%@", family);
for (NSString* name in [UIFont fontNamesForFamilyName: family])
{
NSLog(@" %@", name);
}
}
Details here: http://codewithchris.com/common-mistakes-with-adding-custom-fonts-to-your-ios-app/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With