简体   繁体   中英

Adding launch image using LaunchScreen.storyboard in xamarin.ios

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. I cannot use LaunchImage.launchimage assets image approach as there is no placeholder available for iPhoneX for adding image in xamarin.

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

  3. 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。我能够将图像添加到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. 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.

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM