Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin iOS Launch Screen Image In Storyboard Not Pulling From Asset Catalog

Tags:

ios

xamarin

I'm using Visual Studio 2017 and the latest Xamarin iOS 10.10.0.30. I've tried following the documentation for creating a launch screen storyboard. I created all the launch screen images add added them in the Media tool under Asset Catalogs (both AppIcons and LaunchImages).

I'd prefer to just use these static images instead of creating a storyboard, but that doesn't seem to be an option. So, when creating the view for Resources\LaunchScreen.storyboard, I add an Image View and go to properties and to the Image drop down. The images in the asset catalog are not listed in the drop down, but the Xamarin images in the Resources folder are listed. Something does not make sense.

Can we not use the LaunchImages from the asset catalog in Visual Studio? If we have to use a storyboard, how do we get it to select the right image for the device it is starting on?

like image 736
Tony Lugg Avatar asked Jun 08 '17 16:06

Tony Lugg


People also ask

How do I launch storyboard in screen?

storyboard to configure your launch screen. If your project doesn't contain a default launch screen file, add a launch screen file and set the launch screen file for the target in the project editor. Choose File > New > File. Under User Interface, select Launch Screen, and click Next.


1 Answers

It seems I am able to use the asset catalog launch images if I edit the info.plist in an XML editor and remove the UILaunchStoryboardName key. When I open it in the Manifest Editor it still says LaunchScreen....not sure what is with these settings.

like image 53
Tony Lugg Avatar answered Oct 23 '22 10:10

Tony Lugg