I want to use a custom font for a UILabel. The custom font is loaded by from a file:
UILabel
NSString *fontPath = ... ; // a TTF file in iPhone Document
Conrad's answer is close but doesn't quite work. You need to provide UIFont with the PostScript name, rather than the full name.
NSString *fontName = (NSString *)CGFontCopyPostScriptName(fontRef); UIFont *font = [UIFont fontWithName:fontName size:someSize]