如何在便携式 xamarin ios 项目中更改启动画面? [英] How to change splash screen in portable xamarin ios project?
问题描述
我使用的是便携式 xamarin 形式,其中一个项目是 IOS 项目
I am using portable xamarin form in which one the project is IOS porject
在 IOS 项目中,我想创建启动画面.我在 ios 项目属性中添加了 Iphone Launches 图像和 iPad 启动图像.
In IOS project I want to create splash screen. I added Iphone Launches images and iPad launched images in ios project property.
当我运行应用程序时,它会显示默认启动画面.
when i run the application it show default splash screen.
我还尝试从 info.plist 文件中删除启动屏幕标记,当我运行应用程序启动画面时显示但页眉和页脚变黑
I also try by removing launchscreen tag from info.plist file, when i run application splash screen is displaying but header and footer become black
请建议我如何更改 ios 项目的启动画面
Please suggest me how to change the splashscreen of the ios project
提前致谢.
推荐答案
首先你应该知道,启动画面只是一个静态图像,你可以通过这一步来设置:
At first you should know, that the splash screen is just a static image, you can set it by this step:
1 创建单视图应用程序:
1 Create a single view application:
2 进入info.plist",找到launch images",点击Use Asset Catalog":
2 Going to "info.plist" you can find "launch images", click "Use Asset Catalog":
3 然后从您的解决方案中删除LaunchScreen.storyboard",并从 info.plist->source 中删除 KeyLaunch screen interface file base name":
3 Then remove the "LaunchScreen.storyboard" from your solution, and remove the Key "Launch screen interface file base name" from the info.plist->source:
4 最后在Assets.xcassets"中设置你想要的图像:
4 At last set the image you want in "Assets.xcassets":
哦,还有一件事,如果您需要更改Assets.xcassets"中的任何内容,您会受到打击:
Oh, another thing, if you need change anything in "Assets.xcassets" you'd batter:
1 清理您的解决方案并重建它;
1 Clean your solution and rebuild it;
2 如果您已经安装了旧的应用程序,请从您的设备中删除该应用程序;
2 Delete the APP from your device if you already install the old one;
3 然后安装新的,就可以了.
3 Then install the new one, it will works.
希望能帮到你.
这篇关于如何在便携式 xamarin ios 项目中更改启动画面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!