2012-09-28 71 views
0

我想爲iphone使用單獨的字體樣式。 所以,需要加載字體家族。 如何在iphone中加載字體家族。如何在iphone中加載字體家族

請人..

+0

http://stackoverflow.com/search?q=ios+custom+font – deanWombourne

+0

http://stackoverflow.com/questions/8484937/can-i-use-a-tally-marks-fonts- in-uilabel/8485009#8485009 – Dhawal

回答

1
  1. 阻力領取並支持文件刪除您customFontName.ttf文件到您的項目
  2. 轉到項目名稱,info.plist中。添加提供 通過應用的關鍵字體 - >添加新項 - >給定值,customFontName.ttf

enter image description here

  • 用它在任何你想要的,
  • myLabel.font = [UIFont fontWithName:@「customFontName」size:15.0];