[英]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.
我目前面临的问题是,我无法在设备或模拟器上看到启动图像的图像。
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中添加图像。
I have tried adding images in Images.xcassets folder and accessing it in storyboard. 我尝试在Images.xcassets文件夹中添加图像并在storyboard中访问它。 However, its just displays blank screen.
但是,它只显示空白屏幕。
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.