使用xamarin.ios中的LaunchScreen.storyboard添加启动图像 [英] Adding launch image using LaunchScreen.storyboard in xamarin.ios

查看:368
本文介绍了使用xamarin.ios中的LaunchScreen.storyboard添加启动图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Xamarin.ios上工作,并使用Visual Studio进行开发.我已经添加了LaunchScreen.Storyboard来显示启动图像,因为我也想定位到新的iPhoneX设备. 我目前面临的问题是,我无法在设备或模拟器上看到启动图像的图像.

I am working on Xamarin.ios and using visual studio for development. I have added LaunchScreen.Storyboard for displaying launch image as i want to target new iPhoneX device as well. Problem that i am facing currently is, i am not able to see image on either device or simulator for launch image.

  1. 我无法使用LaunchImage.launchimage资产图像方法,因为iPhoneX没有可用于在xamarin中添加图像的占位符.

  1. I cannot use LaunchImage.launchimage assets image approach as there is no placeholder available for iPhoneX for adding image in xamarin.

我尝试在Images.xcassets文件夹中添加图像并在情节提要中访问它.但是,它只是显示空白屏幕.

I have tried adding images in Images.xcassets folder and accessing it in storyboard. However, its just displays blank screen.

还尝试编辑contents.json以添加iphoneX启动图像,但仍然没有成功.

Also tried editing contents.json for adding iphoneX launch image, still no success.

请让我知道是否有人遇到过相同的问题并解决了该问题.

Please let me know if anybody has faced same issue and resolved it.

推荐答案

我今天也遇到了同样的问题,我用最新版本7.4(内部版本1033)更新了Visual Studio for mac.我可以将图像添加到asset.xcassets现在对我有用.

I was also having the same issue today I have updated visual studio for mac with the latest version 7.4(build 1033).I am able to add the image to assets.xcassets now its working for me.

这篇关于使用xamarin.ios中的LaunchScreen.storyboard添加启动图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆