问题
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.
I cannot use LaunchImage.launchimage assets image approach as there is no placeholder available for iPhoneX for adding image in xamarin.
I have tried adding images in Images.xcassets folder and accessing it in storyboard. However, its just displays blank screen.
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.
回答1:
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.
回答2:
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.
来源:https://stackoverflow.com/questions/48187309/adding-launch-image-using-launchscreen-storyboard-in-xamarin-ios