true type fonts - iOS 8 custom UIFont does not appear in fontFamily listing even though it shows in IB -


in ios 8, xcode6, add custom font, in info.plist. it's there in build phases. it's there in storyboard, not list in familynames. i've read every other stack overflow post on several times.

the file codbard.ttf. actual postscript name codabard.

for (nsstring* family in [uifont familynames])     {         nslog(@"%@", family);          (nsstring* name in [uifont fontnamesforfamilyname: family])         {             nslog(@"  %@", name);         } } 

it's not there.

and line of code produces nil result

uifont *customfont = [uifont fontwithname:@"codabard" size:20]; 

you have use font somewhere in xib or storyboard

i create blank xib , add labels use desired font, don't use xib nowhere, loads custom fonts


Popular posts from this blog