You have a typo when you assign attributes:
It should be:
self.navigationController.navigationBar.titleTextAttributes
instead:
self.navigationController.navigationBar.titleTextAttributes
If this does not fix the problem, you can check if the font was added correctly by placing this code in AppDelegate didFinishLoadingWithOptions . This will print all available fonts of your application. Just look at the output window and find the name of your font (Gotham-Bold). If it is not specified, you can remove the font from your project and add it again using drag and drop. Be sure to check "add to target" next to your application in the dialog box that appears.
//list all available fonts for (NSString *family in [UIFont familyNames]) { NSLog(@"---------- %@ ----------", family.uppercaseString); NSArray *names = [UIFont fontNamesForFamilyName:family]; for (NSString *font in names) NSLog(@"%@", font); }
Hannes
source share