Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Get Custom font name to be used in your xcode project

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 566
    Comment on it

    Sometimes we add custom fonts to our xcode project. For example:- Suppose TwCenMT-Bold.ttf is the font name which you have added to your xcode project, but when you access this font, it does not reflects.

    *Reason:- * This font does not contains the same name in the xcode font family list.

    Solution:- You can print the font names using the following code and can get the exact or correct name for your xcode project.

     for (NSString *familyName in [UIFont familyNames]) {
        for (NSString *fontName in [UIFont fontNamesForFamilyName:familyName]) {
            NSLog(@"%@", fontName);
        }
    }
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: