Хороший способ подключения шрифтов.

Кидаем в ресурсы наш шрифт. Вставляем и выполняем функцию.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
NSUInteger loadFonts()
{
     NSUInteger newFontCount = 0;
     NSBundle *frameworkBundle = [NSBundle bundleWithIdentifier:@"com.apple.GraphicsServices"];
     const char *frameworkPath = [[frameworkBundle executablePath] UTF8String];
     if (frameworkPath) {
          void *graphicsServices = dlopen(frameworkPath, RTLD_NOLOAD | RTLD_LAZY);
          if (graphicsServices) {
               BOOL (*GSFontAddFromFile)(const char *) = dlsym(graphicsServices, "GSFontAddFromFile");
               if (GSFontAddFromFile)
                    for (NSString *fontFile in [[NSBundle mainBundle] pathsForResourcesOfType:@"TTF" inDirectory:nil])
                         newFontCount += GSFontAddFromFile([fontFile UTF8String]);
          }
     }
     return newFontCount;
}

Смотрим что у нас появилось

1
NSLog(@"%@",[UIFont familyNames]);