简体   繁体   English

LaunchScreen.storyboard 中的自定义字体

[英]custom font in LaunchScreen.storyboard

I am modifying a LaunchScreen.storyboard file.我正在修改 LaunchScreen.storyboard 文件。 I want to use custom font for labels inside it.我想对其中的标签使用自定义字体。 My font is of type .fft.我的字体是 .fft 类型。 I cannot make IBOutlets to a View Controller because launch screens cannot be a subclass of UIViewController.我无法将 IBOutlets 制作为视图控制器,因为启动屏幕不能是 UIViewController 的子类。

So how to use custom font in LaunchScreen.storyboard file?那么如何在 LaunchScreen.storyboard 文件中使用自定义字体呢?

You can't use custom fonts on the Launch screen.您不能在启动屏幕上使用自定义字体。 Only standard system fonts.仅标准系统字体。

System will automatically replace your custom font to system during runtime.系统将在运行时自动将您的自定义字体替换为系统。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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