简体   繁体   中英

warning Using the font Tahoma in versions of Xcode prior to 4.2 may have unexpected results.ios

I am getting this warning in Xcode ...plz give me idea to solve this warning issue

Using the font Tahoma in versions of Xcode prior to 4.2 may have unexpected results.iOS

May Be Mistake Should be in How To add Font in Application.

This is Step for, How to add custom font in Application.

1 - Add .TTF font in your application
2 - Modify the application-info.plist file .
3 - Add the key "Fonts provided by application" to a new row
4 - and add each .TTF file (of font) to each line.

For more info read This and This site.

FOR Your INFORMATION :

For Bold

// Equivalent to [UIFont fontWithName:@"FontName-BoldMT" size:17]
UIFont* font = [UIFont fontWithFamilyName:@"FontName" traits:GSBoldFontMask size:17];

And bold/italic

UIFont* font = [UIFont fontWithMarkupDescription:@"font-family: FontName; font-size: 17px; font-weight: bold/italic;"]; // set here, either bold/italic.
  1. Go to xib
  2. click on the "show file Inspector icon" (first icon).
  3. Under the document versioning change your development greater than 4.2

在IB中,转到“ 文件检查 器” ,其中文件版本控制中的界面生成器文件下的开发值大于当前值(xcode版本)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM