简体   繁体   中英

Xamarin.Forms iOS - Blank White Launch Screen (Splash Screen)

On a Xamarin.Forms iOS project we started a couple years ago, we used to have a working launch screen. But recently I renamed and cleaned out a bunch of the images. Now the launch screen doesn't work, and no matter what I do, I can't get it to work.

I'm using Visual Studio 2017, and I've tried creating a story board (LaunchScreen.storyboard), following the few crappy tutorials that are out there (like this one ), and I've verified that in info.plist, the UILaunchStoryboardName key with LaunchScreen string exist, and in LaunchScreen.storyboard (located in root of iOS project), it has a single view with a red background ( <color key="backgroundColor" colorSpace="calibratedRGB" red="0.92549019607843142" green="0.23529411764705882" blue="0.24313725490196078" alpha="1"/> ), and an image inside.

I've even tried a story board with just a red background and no image. No luck.

I've also tried just the Launch Image route, where I add a Launch Image Asset Catalog, I add images for the various resolutions, and in info.plist, in the Visual Assets tab, in the Launch Images section, I specify LaunchImage as the Source, and I leave the Launch Screen not set (as opposed to setting to LaunchScreen storyboard).

But no matter what I try - I always get a blank white screen . I've tried clearing the obj and bin folders in the iOS and PCL projects and restarting Visual Studio.

Why is this so difficult? What am I missing?

This is very strange issue, maybe related with iOS caching. Try to delete application from emulator/device then run app again.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM