gpt4 book ai didi

ios - 尽管匹配宽度/高度限制,但启动屏幕 Storyboard 中的图像不可见

转载 作者:行者123 更新时间:2023-11-28 21:03:39 25 4
gpt4 key购买 nike

我的 LaunchScreen.storyboard 文件中有一个 UIImageView 我想填充 View ,所以我从图像中单击并拖动到包含查看并选择 Equal WidthsEqual Heights。运行时,背景图像不可见(我只看到 Logo 图像)。

这是带有约束的场景层次结构:

Scene hierarchy

最佳答案

您尚未设置任何定义背景图像来源的限制条件。这可能会导致您的图像错位。这个 View Controller 中没有任何布局错误或警告吗?

对于背景图片,我建议您使用 leading, trailing, top and bottom constraints to the superview replace equal width and height 到父 View 。

这是示例解决方案

example layout solution

关于ios - 尽管匹配宽度/高度限制,但启动屏幕 Storyboard 中的图像不可见,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46962173/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com