Run screen on Xamarin.iOS not showing. Instead, a blue screen is displayed.

I am having trouble displaying the launch screen only on my real iPad Mini device. When I launch the application, a blue screen is displayed instead. I use the asset catalog to include images. When I run on iPhone or on iPad 2 Simulators, the launch screen shows great! Inside the Contents.json file in my assets directory there are 4 images for the iPad. It:

- Default-portrait.png (768x1004)

- Default-Portrait@2x.png (1536x2008)

- Default-Landscape.png (1004x768)

- Default-Landscape@2x.png (2008x1536)

The parameter of the status bar "Hide during application startup" inside info.plist is not set.

I followed startup control screens with asset directory steps in Xamarin Launch. Screen: http://developer.xamarin.com/guides/ios/application_fundamentals/working_with_images/launch-screens/#asset-catalogs

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

PS: Sorry for the bad English!

+5
source share
2 answers

Like James Montemagno and Kevin Mullins in this Launch Screen post, new iOS devices need to use Storyboard instead of asset directories. I am creating a storyboard and now it works great.

+4
source

You can check the correct uppercase and lowercase letters. The simulator is not case sensitive, for example. he will gladly accept the file defAULT-PORtrait.png. Your iOS device, on the other hand, is case sensitive.

In particular, I noticed that your files call:

  • Default p ortrait.png (768x1004)
  • Default is P ortrait@2x.png (1536x2008)

Perhaps this will help describe the spelling for all files and directories of assets to make sure that they match your info.plist file.

+1
source

Source: https://habr.com/ru/post/1236149/


All Articles