Need Help in iPhone Application Development

Need Help in iPhone Application Development

skipday

New Member
Thread Starter
Joined
Mar 14, 2011
Messages
4
Reaction score
0
I am developing iPhone application and want to use custom fonts in the navigation title. I have used custom fonts in the design and text is dynamic so I could not use jpg file.

I tried to add custom fonts in my application and trying to load that font in iPhone apps to display custom navigation title.

I search Google but did not find any proper solution. Can someone help me how I can achieve?

Thanks in advanced.
 
If you are using iOS 4.0 then you can load using then follow below steps.

1. Add custom font file into your iPhone apps.
2. Add a key to your info.plist file called UIAppFonts.
3. Make this key as an array
4. For each font you have, enter the full name of your font file (including the extension) as items to the UIAppFonts array
5. Save info.plist
6. Now in your application you can simply call [UIFont fontWithName:@"CustomFontName" size:12] to get the custom font to use with your UILabels and UITextViews

If you are using iOS lower than 4.0 then iPhone only support fonts which is listed here.
iPhone supported fonts: iOS Fonts

Even you can use custom font but you need to use custom font library.
for custom fonts: https://github.com/zynga/FontLabel
 

Latest posts

Back
Top