ios - How to add and use a custom font in my xcode project -


i trying add , use font within app. i've followed post reference can't work.

i've added font frutiger95ultrablack.ttf supporting file , added {app-name}-info.plist.

then tried use in app delegate change uinavegationbar nothing happens.

what missing??

 [[uinavigationbar appearance] settitletextattributes:[nsdictionary dictionarywithobjectsandkeys:                                                           [uicolor whitecolor], uitextattributetextcolor,                                                           [uifont fontwithname:@"frutiger95ultrablack" size:16.0], uitextattributefont,nil]]; 

(from above comment:) [uifont fontwithname:...] requires postscript name of font parameter, might different file name.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -