iOS XCode launch screen storyboard does not display image from asset catalog when running on device - uiimageview

I'm running into an issue where an iOS app project using Launch Storyboard does not display some images from the asset catalog. But it can display another image in the same image view. This tells me that the image view is set up correctly, and something is wrong with the image itself
How can I understand why my image is not displayed on launch screen when starting app?
I checked the asset catalog membership, and the images are members of the correct target. The image displays in the interface builder preview.
I checked and images are not displayed when saved in either JPG or PNG format.
The image previews fine on Storyboard preview.
I tried using smaller image, so it doesn't seem to be a file size issue.
Does not work on either device or simulator.
This image displays:
This image does not display:

Related

Xamarin.iOS: Adding image in visual studio assets.xcassets imageset for both landscape and portrait orienatation

For my Xamarin.iOS project I am using LaunchScreen.Storynboard for showing launch screen. For adding images, I am using asset catalog. My application supports both orientations on iPad. However, when I open imageset in visual studio it shows only one #2x image for iPad which will be occupied by Portrait image. Now, for adding landscape image I have edited its Contents.Json file and added image details there. added image locally and also added its entry in projects .csproject file.
However, when I build and run application its only picking one image and applying it to both the orientations.
e.g. Its picking landscape image and applying it in both landscape and portrait launch screen image. Now, in portrait mode image is showing vertically stretched.
which is causing UI issue.
How to set image for both the orientations in visual studio xcassets imageset?
Any suggestion would be appreciated.
Thank You.
How to set image for both the orientations in visual studio xcassets
imageset?
LaunchImage ImageSet is the old way which has been deprecated, we don't need to set storyboard or xib on Launch Screen, but it is nothing except image. We can't find a way to set LaunchImage ImageSet in the latest Visual-Studio.
Refer: Xcode 11 UILaunchImages has been deprecated, use launch storyboards instead Warning
Now, in portrait mode image is showing vertically stretched. which is
causing UI issue.
You should use auto-layout to layout your image in both landscape and portrait orientation so that it won't be stretched. See document here: Managing Launch Screens with Storyboards
:

Xamarin iOS Launch Image Not Showing

I am trying to use a LaunchScreen.storyboard to show a simple image.
I followed the instructions here
The image that I am trying to use doesn't show up.
I have another image in my assets.xcassets file that when I set the exact same ImageView to that one it shows up fine.
If I copy the image I want over the top of the image that works in its own folder under Assets.xcassets folder then the image I want works.
I just can't get the image I want located in its own Assets.xcassets folder to work as a splash screen.
If I add an to any of my xaml forms then the image shows up fine.
The image also shows up fine in the storyboard editor in VS2019.
I am totally confused about why this image doesn't work as a splash on a LaunchScreen.storyboard.
I am hoping someone can help me figure it out.
This is a screenshot of my storyboard:
When I run the app I don't get anything other than a black splash screen.
Here is a screen shot of the exact same storyboard where I have changed the Image setting to another image in my Assets.xcassets.
When I have it set to that one the splash shows that image just fine on startup.
Here is an image of my Assets.xcassets folders:
As I said before if I simply copy and paste the image that doesn't work over the top of the one that does inside the Assets.xcassets folder (renaming it of course), then the image I want works fine as the splash.
So it is not the image itself. I don't understand what is going on.

Xcode 10 UIBarButtonItem Images Vanish On Storyboard

I am using the latest version of Xcode 10 that's available in the app store. I keep losing UIBarButtonItem images in the designer. They are visible when the app is run. I can get the images back by switching the image to a different one and then switching it back again. This is what it looks like when the images are gone:
This is what it looks like when the images are visible:
If I change one image, all of the images on the screen come back. They will generally stay until I close down and reopen the app in Xcode.
They always display correctly when run on an actual device. I have tried it on multiple iPads, an iPhone, and every device simulator that I could find. This is only an issue with images on the designer.
This is how the images are set up in Xcode:
The 1X image is 24x24, the 2X image is 48x48, and the 3X image is 72x72. All images that I am using were created in Affinity Designer. They were all saved as PNG files. This is a file with the images that I'm using for the checkmark: Checkmark Files
All of the images have the following settings:
This is what the settings for the UIBarButtonItem looks like.
So far, this is just an annoyance that is happening in multiple apps that I'm working on. I'd just like to figure out why it is happening and if it is just an Xcode bug.

Using the LaunchImage and AppIcon inside the iOS app

I have images.acassets in my XCode project. I have set AppIcon source and Launch Image source properly. Everything works perfect. I am able to see the launch image correctly once the app is launched. Can I use this same launch Image inside the app in different xib, where I would like to set this image as background image for one of the xib. When I select the imageview from xib and click on image in the right panel, I am not able to see the image listed in the all image list. Any idea??

Image not showing up in iOS simulator

I am currently working on an app in Xcode. I'm having the following problem:
I have created a 60-60 pixel image in Adobe Photoshop with a transparant background. I saved this as an .png file, and added it to the 'Supporting Files' section of Xcode. I created an image view in my Main.storyboard. However, when I run the iOS Simulator, the image doesn't appear. I have tried the same thing with a different .png file that wasn't made with Adobe Photoshop, and this image did appear in the iOS Simulator, so the problem clearly has to do with the image and not with the positioning or coding.
Thanks in advance!

Resources