iOS Launchscreen is not being displayed in Xamarin.Forms - ios

I don't know what happened but since some days ago the LaunchScreen is not being displayed. Check the following:
Any ideas?

Seems that you want to use LaunchImage Assets for your LaunchScreen. You are setting Source & LaunchScreen, both, at the same time.
If you want to use LaunchImage Assets, Delete the content inside the Launch Screen in info.plist as below:
Launch Screen uses the LaunchScreen.storyboard single file to use across the devices (iPhone/iPads).
While Assets Source uses the Image catalogs, to set specific Launch Image for some specific device of resolution.
You have to use both of this options as an alternatives.

Related

About iOS development. The launch screen didn't show when I run my project on my iPhone6,however,its's show when run on simulator iPhone6

I don't know why, and this is the first time i came accross this issue.
NOTE:I had set the launch screen
What iOS is your device on?
In xCode 6/iOS8 you use a Xib as your launch screen, older versions use just an image set in assets. (look at your project 'General' settings under 'App Icons and Launch Images' and check to see what is set.
This article explains a bit more:
http://useyourloaf.com/blog/using-a-launch-screen-storyboard/
You can add LaunchImage in Image Assets ad use LaunchImage in Image Assets as below.
You need to integrate LaunchImage as follow..

Splash screen not visible for iPad, only a black screen gets shown

I have an universal app. The splash screen loads fine for iPhone but the same is not visible on the iPad. Instead a black screen appears in its place. I have gone through the questions posted in this regard and have followed the steps but to no avail. I am using asset catalog in my project. Storyboards have not been used. The names and dimensions of the images used are as follows:
1. Default-Landscape.png (1024x768)
2. Default-Landscape#2x.png (2048x1536)
3. Default-Portrait.png (768x1024)
4. Default-Portrait#2x.png (1536x2048)
5. Default-568h.png (640x1136)
6. Default.png (320x480)
7. Default#2x.png (640x960)
Please let me know if there is anything wrong with the dimensions I am using. The options I have selected for the Attributes Inspector for the Launch image are given in the image below:
Following is the setting for Launch image:
I added the same launch images to a sample app and the launch screen showed up perfectly on iPad.
EDIT:
As per the suggestion of #iphonemaclover, the problem was solved using "You should also remove any other key suffixed with (iPad) or ~ipad." There was a key UILaunchImages~ipad in the plist which I removed. Now the launch screen is properly visible.
Please delete your derived data and clean the your project.
Also reset your simmulater if you running over it.
Hope it will help.
Also check you have selected Universal App in your target setting.
EDIT
You should probably be using an Asset Catalogue for your launch images, which might be what Xcode is expecting. You can see what Xcode is expecting in the General tab for your target:
MORE Suggestion
Q: Why does my app launch to a black screen on iPad?
A: Apps that have been designed only for iPhone may launch to a blank screen when run on an iPad. This is caused by the presence of an empty iPad specific storyboard in the app bundle as well as an iPad specific UIMainStoryboardFile key in the app's Information Property List (Info.plist) file. Both are automatically created by the various Xcode template projects if the Universal option is selected.
...
In Xcode
Look for a file named MainStoryboard_iPad.storyboard in the file navigator. If this file is present, remove it from your project.
In In your app's Information Property List
Look for a key named Main storyboard file base name (iPad) or UIMainStoryboardFile~ipad. If this key is present, remove it. You should also remove any other key suffixed with (iPad) or ~ipad.
Finally, test your app on an iPad or in the iPad simulator and verify that it behaves as expected.
You should add your launch image to your asset catalogue, and make sure the setting shown is configured correctly.
If you don't have one already, you can add an asset catalogue by going to File > New > File, the look under the Resource tab.
Probably not related to most people's problems but I would like to add another possible issue. I had the same problem with my project. I could see my iPad images in X-Code but what I missed was that the title underneath was "unassigned" and not "iPad Portrait" (this was probably because it was a boilerplate React Native project that was initially configured only for iPhone).
After making my app universal, I needed to recreate my LaunchImage set which then had designated placeholders for iPad. I re-added all my images, assigned the new Launch Image set, clean, build and it was fixed. Hopefully it saves someone else some time.
If you're not loading an image in your slash screen do you get the white view? If you're not getting, then your view is not loaded. That is why you're getting a black screen.

Use static launch Images instead of launch file

I want to use static launch Images instead of launch file, so I have created a LaunchImage folder in Images.xcassets. I have also deleted LaunchScreen.xib and made some settings.
But on iOS Simulator, the launch image is still the same as before without the images I have added. How can I deal with this?
You just have to let the field Launch Screen File empty. If you let this field fill, it will be used by your project.
Also, if you don't have any launch image sources in your cassettes, you will just have a black screen until you fill them.
It is necessary to add images of the correct sizes (for all device sizes that your app supports).

how to setup ios launchscreen.xib with LaunchImage in image.xcassets

I am using Xcode 6.2 . It now comes with a LaunchScreen.xib . I also have a splash screen image in my image.xcassets.
Should I integrate the splash screen image into a imageview in the xib file? I tried this, and it does not let me put that image file in the interface builder.
How do I accomplish this?
I'm not sure if this was the best way, but I actually removed the LaunchScreen.xib file from my project and indicated the Launch Images Source to be the LaunchImage within the images.xcassets folder. I even removed the LaunchScreen from the Launch Screen File and it works how I want it to now.
Image below is from my project's target General tab.
Launch image is basically needed for devices before iOS 7.1 and launch nib is new feature in devices after that.So I put launch images and launch nib both in my project
Xcode 6 allows use a LaunchScreen.xib for iOS8+. It the best way to create a launch screen if your app:
Support only iOS8+, previous version need a launch image source.
If your launch screen is simple and you can get it using UILabel or other UI objects supported in launch screen xib.
Why use LaunchScreen.xib? Because you can support all the screen devices with one file if you setup the auto layout properly. And believe me, it's great if you're coding a universal app.
If your launch screen has a more complex design (logos, custom typography...) you'll have to use launch images sources and you'll have to create one image for every screen sizes.

xcode6.1 launchscreen launchimage blank

I know this question exists in numerous forums, but i did not quite find the right answer.
Well I'm working under xcode6.1 and developing a universal app, I added the launchimages to the image assets and in the target->general settings added the launchimage name required, then I launched the app and I got a white screen instead of the image.
Am I missing something?
Beneath the Launch Images Source is Launch Screen File option. By default it is set to LaunchScreen.xib You need to clear it. Then the xcode6.1 will pick Launch images from your image assests

Resources