gpt4 book ai didi

ios - 如何更改可移植 xamarin ios 项目中的启动画面?

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:11:55 26 4
gpt4 key购买 nike

我正在使用可移植 xamarin 表单,其中一个项目是 IOS 项目

在 IOS 项目中,我想创建启动画面。我在 ios 项目属性中添加了 Iphone 启动图像和 iPad 启动图像。

当我运行该应用程序时,它会显示默认启动画面。

我还尝试从 info.plist 文件中删除 launchscreen 标签,当我运行应用程序时显示启动画面但页眉和页脚变为黑色

请建议我如何更改 ios 项目的启动画面

提前致谢。

最佳答案

首先你应该知道,启动画面只是一个静态图片,你可以通过这一步来设置:

1 创建单 View 应用: enter image description here

2 进入“info.plist”找到“launch images”,点击“Use Asset Catalog”: enter image description here

3 然后从您的解决方案中删除“LaunchScreen.storyboard”,并从 info.plist->source 中删除键“Launch screen interface file base name”: enter image description here enter image description here

4 最后在“Assets.xcassets”中设置你想要的图片: enter image description here

哦,还有一件事,如果您需要更改“Assets.xcassets”中的任何内容,您会感到震惊:

1 清理您的解决方案并重建它;

2 如果您已经安装了旧应用程序,请从您的设备中删除该应用程序;

3 然后安装新的,就可以了。

希望对您有所帮助。

关于ios - 如何更改可移植 xamarin ios 项目中的启动画面?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39745794/

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