M
M
MagoVinch2014-07-02 17:15:22
Objective-C
MagoVinch, 2014-07-02 17:15:22

Why is custom font not showing up in xcode?

I have added my font to the xcode project and set it in the plist, but when I point it in the code to a specific uilabel, it is not displayed. What could be the reason?
arsaevm?z=photo233039342_333068258%2Fpho

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
s0L, 2014-07-02
@s0L

Most likely, it has a different name from the file name, display all available fonts with the code and find the correct name of your font there. For example like this

for (NSString* fontFamily in [UIFont familyNames]) {
        NSLog(@"Font family: %@", fontFamily);
        NSLog(@"Fonts %@", [UIFont fontNamesForFamilyName:fontFamily]);
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question