Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Launch screen on Xamarin.iOS not showing. A blue screen is shown instead

I'm having some trouble on showing a launch screen only on my real iPad Mini device. When I run my app, a blue screen is shown instead. I'm using an asset catalog to include the images. When I run on iPhone or on iPad 2 Simulators the launch screen shows perfectly! Inside the Contents.json file in my asset catalog there are 4 images for iPad. They are:

- Default-portrait.png (768x1004)

- [email protected] (1536x2008)

- Default-Landscape.png (1004x768)

- [email protected] (2008x1536)

The Status Bar Style "Hide during application launch" option inside info.plist is unchecked.

I've followed the Managing Launch Screens with Asset Catalogs steps in Xamarin Launch Screen guide: http://developer.xamarin.com/guides/ios/application_fundamentals/working_with_images/launch-screens/#asset-catalogs

If someone knows what my mistakes are, please let me know! =]

PS: Sorry for the bad English!

like image 406
Bernardo Rocha Avatar asked Nov 17 '15 11:11

Bernardo Rocha


People also ask

How do I add 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.

What is LaunchScreen storyboard?

The LaunchScreen. storyboard is an interface builder storyboard file that uses auto-layout and some basic constraints on the controls to adjust the display for all the supported devices. Perform this task in the copy of the DeploymentKitApp in Xcode on your computer.


1 Answers

Like James Montemagno and Kevin Mullins answered in this post Launch Screen, the new iOS devices need to use Storyboard instead of Assets Catalogs. I create a Storyboard and it works perfectly now.

like image 199
Bernardo Rocha Avatar answered Sep 19 '22 18:09

Bernardo Rocha