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

标签 ios xamarin.ios splash-screen

我正在使用可移植 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/

相关文章:

ios - 在 UITableViewCell 中添加和删除 UIButton 的目标操作

c# - MonoTouch.Dialog 仅图像单元格

ios - 如何确定哪些框架触发了对隐私敏感的.plist问题

android - 当我尝试通过线程启动另一个 Intent 时,我的初始屏幕背景没有显示

cocoa - 创建闪屏 Cocoa

iphone - 如何在显示启动画面时从 Web 服务加载数据?

ios - 嵌入式表格 View 现在显示减少的 subview

ios - 我无法为 UICollectionViewCell 子类或其任何 subview 设置动画

ios - NSLocalizedString,参数使用从右到左的语言(例如波斯语)

Xamarin.iOS 中的 iOS 选择器