gpt4 book ai didi

ios - 使用 LaunchImages 和 LaunchScreen 的区别

转载 作者:行者123 更新时间:2023-11-29 11:33:23 27 4
gpt4 key购买 nike

我在 xamarin ios 工作。我发现使用 Assets 中的 LaunchImages 和使用 LaunchScreen 之间存在差异。当我使用 LaunchImages 时,我觉得 UI 几乎没有缩放。但是,如果我使用 LaunchScreen,那么它看起来很好。

为什么会这样?我能做些什么来修复它?

最佳答案

如果您的 UI 在使用 launchimages 时看起来缩放得很少,这是因为没有为特定设备添加适当大小的 lanch 图像image 的 launchImage Assets 中。 xcimageasset 部分。

如果您为特定设备添加适当的图像,它将起作用

enter image description here

苹果提供的launch image size guideline如下: https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/launch-screen/

enter image description here

关于ios - 使用 LaunchImages 和 LaunchScreen 的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51396881/

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