My guess is that your custom font is not being found instantiated.
Whenever I have a problem like this where there are two things happening: obtaining a font and setting a font, I separate them to find the problem:
UIFont *font = [UIFont fontWithName:@"DS-Digital" size:24];
Outbound_Label.font = font;
Then I can determine where the error is easily with either the debugger or NSLog()
.
In fact this is a very clear way to write the code in the first place. I never worry about optimization, I only worry about clarity and ease of maintenance. Later if there are performance issues I profile, find the real culprits and resolve them. The clearer the code the easier that is.
In a case like this the compiler will undoubtedly optimize away the font variable so there is no harm.
See this:SO answer
Applications that want to use custom fonts can now include those fonts in their application bundle and register those fonts with the system by including the UIAppFonts key in their Info.plist file. The value of this key is an array of strings identifying the font files in the application’s bundle. When the system sees the key, it loads the specified fonts and makes them available to the application.