开发者

External fonts not available on XIB

Hey friends, I've added a font file (.ttf) in resources folder in XCode 4 and also in info.plist. I am able to use those fonts via code. But those fonts are not available on XIB i.e. font name appears in the list but its not getting applied onto UI components (som开发者_Go百科e default font style gets applied). Any idea on this?


I found that we've to create IBOutlet for components whose font style we want to change.

Custom fonts does appear when we edit text in xib, but they don't get applied at runtime.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜