LaunchScreen.xib不显示我的自定义字体 [英] LaunchScreen.xib not displaying my custom font

查看:283
本文介绍了LaunchScreen.xib不显示我的自定义字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用标签在LaunchScreen.xib上使用我的自定义字体显示文本。我的自定义字体在Interface Builder中显示正常,但是当我在iPhone上测试时,字体会恢复为默认字体。

I'm using a label to display text with my custom font on LaunchScreen.xib. My custom font shows up fine in the Interface Builder, but when I test it on my iPhone the font reverts back to the default font.

不知道如何解决这个问题或者是否存在错误。

Not sure how to fix this or if it's a bug.

推荐答案

<这里没有什么大惊喜。启动时显示启动屏幕 - 实际上是在启动时间之前 - 因此字体可能尚未加载。

There's no big surprise here. The launch screen is shown at launch time - actually, before launch time - so the font probably hasn't yet loaded.

如果您认为自己有错误,可以提交错误信息一个引人注目的用例。但我真的不认为你这样做。为什么要在启动图像中显示任何文本?它应该比那更简单 - 刚好足以给出开放界面的结构,当开放界面实际出现时,它将被填充。与初始视图控制器的背景颜色具有相同背景颜色的空白屏幕就足够了。你的目标只是提供黑度的替代方案。

You could file a bug if you think you have a compelling use case. But I don't really think you do. Why are you showing any text in your launch image? It should be much more bare-bones than that - just enough to give the structure of the opening interface, which will be filled in when the opening interface actually appears. A "blank" screen with the same background color as the initial view controller's background color would be sufficient. You goal is just to provide an alternative to blackness.

这篇关于LaunchScreen.xib不显示我的自定义字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆