简体   繁体   English

使用xamarin.ios中的LaunchScreen.storyboard添加启动映像

[英]Adding launch image using LaunchScreen.storyboard in xamarin.ios

I am working on Xamarin.ios and using visual studio for development. 我正在研究Xamarin.ios并使用visual studio进行开发。 I have added LaunchScreen.Storyboard for displaying launch image as i want to target new iPhoneX device as well. 我已经添加了LaunchScreen.Storyboard来显示启动图像,因为我想要定位新的iPhoneX设备。 Problem that i am facing currently is, i am not able to see image on either device or simulator for launch image. 我目前面临的问题是,我无法在设备或模拟器上看到启动图像的图像。

  1. I cannot use LaunchImage.launchimage assets image approach as there is no placeholder available for iPhoneX for adding image in xamarin. 我不能使用LaunchImage.launchimage资产图像方法,因为没有占位符可用于iPhoneX在xamarin中添加图像。

  2. I have tried adding images in Images.xcassets folder and accessing it in storyboard. 我尝试在Images.xcassets文件夹中添加图像并在storyboard中访问它。 However, its just displays blank screen. 但是,它只显示空白屏幕。

  3. Also tried editing contents.json for adding iphoneX launch image, still no success. 还尝试编辑contents.json添加iphoneX启动图像,仍然没有成功。

Please let me know if anybody has faced same issue and resolved it. 如果有人遇到同样的问题并解决了,请告诉我。

今天我也遇到了同样的问题我用最新版本7.4(版本1033)更新了visual studio for mac。我能够将图像添加到assets.xcassets,现在它正在为我工​​作。

I have found a solution for this. 我找到了解决方案。

having had the same problem I was finally able to select my Image set in the drop down by making sure the Media.xcassets folder was included in the solution. 遇到了同样的问题,我终于能够通过确保Media.xcassets文件夹包含在解决方案中,在下拉列表中选择我的图像集。 By default it is not induced. 默认情况下,它不会被诱导。

在此输入图像描述

Once this was done a clean and rebuild allowed me to select the SplashImage Asset set in the drop down under the Image View properties. 完成此操作后,清理和重建允许我在“图像视图”属性下的下拉列表中选择SplashImage Asset集。

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Xamarin IOS LaunchScreen.Storyboard无法为“图像”视图选择图像 - Xamarin IOS LaunchScreen.Storyboard cant select image for Image view Xamarin Studio:LaunchScreen.storyboard不存在 - Xamarin Studio : LaunchScreen.storyboard does not exists 如果我使用 Xamarin.Essentials Preferences 存储数据,我可以检索该数据以修改 iOS LaunchScreen.Storyboard 上的文本颜色吗? - If I store data using Xamarin.Essentials Preferences, can I retrieve that data to modify text color on an iOS LaunchScreen.Storyboard? 不使用StoryBoard的xamarin.ios中的UITabBarController - UITabBarController in xamarin.ios without using StoryBoard Xamarin.iOS - 在 storyboard 中自动调整图像以填充屏幕 - Xamarin.iOS - autosize image in storyboard to fill screen 如何从LaunchScreen.Storyboard初始化ViewController - How to Initialize ViewController from LaunchScreen.Storyboard 启动应用程序时不显示 LaunchScreen.Storyboard - LaunchScreen.Storyboard is not displayed when launching the app 如何在 xamarin iOS 项目故事板文件中将 LaunchScreen 图像宽度约束设置为超级视图? - How to set LaunchScreen image width constraint to superview in xamarin iOS project storyboard file? 在Xamarin.iOS中解析StoryBoard时出错 - Error in parsing StoryBoard in Xamarin.iOS Xamarin iOS 布局更改后添加启动屏幕 storyboard - Xamarin iOS layout changes after adding launch screen storyboard
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM