作者热门文章
- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我想从 UILabel 的 WatchKit 接口(interface)的属性检查器中选择“自定义”选项,但它被禁用了。有人面临同样的问题吗?如果我遗漏任何东西,请给我指示;
我正在使用 XCode 版本 6.2 (6C131e)
最佳答案
标准 iOS 字体仅在 iOS 设备上是标准字体。它们不包含在 Apple Watch 中。
文档显示了所有标准 WatchKit 字体样式的列表:
请注意屏幕截图中的短语“未安装”。
如果您想使用任何其他字体,您需要安装自定义字体。来自 the WatchKit docs :
To use custom fonts, you must install those fonts by doing the following:
- Include the custom font file in both your WatchKit app and your WatchKit extension bundle.
- Add the
UIAppFonts
key to your WatchKit app’s Info.plist file, and use it to specify the fonts you added to the bundle. For more information about this key, see Information Property List Key Reference.
关于ios - 自定义字体在 WatchKit InterfaceFile 中显示自定义(未安装),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29473342/
我想从 UILabel 的 WatchKit 接口(interface)的属性检查器中选择“自定义”选项,但它被禁用了。有人面临同样的问题吗?如果我遗漏任何东西,请给我指示; 我正在使用 XCode
我是一名优秀的程序员,十分优秀!