I want to select "Custom" option from Attribute Inspector of WatchKit Interface for UILabel but its disabled.
Is Any one facing the same problem? Please give me direction if I am missing any thing;
I am using XCode Version 6.2 (6C131e)
标准 iOS 字体仅在 iOS 设备上是标准字体。它们不包含在 Apple Watch 中。
文档显示了所有标准 WatchKit 字体样式的列表:
请注意屏幕截图中的短语“未安装”。
如果您想使用任何其他字体,则需要安装自定义字体。来自WatchKit 文档:
要使用自定义字体,您必须通过执行以下操作来安装这些字体:
- 在 WatchKit 应用程序和 WatchKit 扩展包中包含自定义字体文件。
- 将
UIAppFonts
密钥添加到 WatchKit 应用程序的 Info.plist 文件中,并使用它来指定您添加到包中的字体。有关此键的详细信息,请参阅信息属性列表键参考。