Adding launch image using LaunchScreen.storyboard

2020-03-21 05:43发布

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.

2条回答
劳资没心,怎么记你
2楼-- · 2020-03-21 05:52

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.

enter image description here

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.

enter image description here

查看更多
兄弟一词,经得起流年.
3楼-- · 2020-03-21 06:00

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.

查看更多
登录 后发表回答