So we're in 2014, is there any way to set custom fonts within Interface Builder yet? Ie don't do it programmatically, except for "Fonts provided by application" in the app's plist.
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Xcode: Is there a way to change line spacing (UI L
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
Looks like someone worked on it. You can have a look at MoarFonts :
It costs 10$, but :
In Xcode 6, we have custom fonts available in interface builder.
No need for extra software. Thank you Apple!
Yes, Marrius is right. In Xcode 6, you neither need to use extra software nor to set Font in Code files. Just add your font files in your project along with other files. And Interface builder will display the added fonts in the Custom Font List.
And the most amazing thing is, xcode 6 shows the applied font instantly in IB. This is the great addition by Apple.
Also make sure to add this key "Fonts provided by application" in your project's info.plist and provide your font file names to see the effect in devices.
In Xcode 6, just add the ttf file in your project and use it in storyboard through custom fonts. If you directly want to use it in your code without using it in storyboard then you have to add key "UIAppFonts" in projectName-Info.plist.
Example:
just before the line
</dict>
in projectName-Info.plist.This is my solution, nothing else worked for me