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

查看:47
本文介绍了在 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.

推荐答案

今天我也遇到了同样的问题assets.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天全站免登陆