I added the launch images in the target settings as shown in this picture:
When I click the little eye icons, the correct image shows.
The images are in the project root.
But, they don't display when I try it in the simulator or on the device.
tri to cancel and reinstall the app on the simulator
Related
I encountered a strange problem related to the Splash screen on iOS 11. I use LaunchScreen.storyboard. I changed Splash Image to Xcode 9, but when I started the device on iOS 11 the old Splash image was displayed, I deleted the application from the iPhone 7, and restarted, Splash Image was still old . I restarted the iPhone and then the new Splash Image was displayed, I read about this problem and the way to solve it here. I did TestFlight build for the testers, and they also show the old Splash Screen, if the testers can still reboot the devices, but we can not ask users to reboot their devices so they can see the new Splash Screen. How can I fix it?
Update: Renaming Splash Image does not give any result. On iOS 10, a new Splash image is always displayed, which is the correct behavior.
Update 1: I deleted LaunchScreen.storyboard, created a new installed isInitialViewController property, set UIImageView and image after startup, Splash screen was not displayed and was just a white screen (if you set UIImageView background color any color it will be displayed). I have an opinion that as if the new Splash screen does not install to a specific target because of this is such a problem. But how can this be done in Assets.xcassets? And the main question remains the same - How can I fix it?
I've got the same problem and fix it this way:
add LaunchImage in assets catalog
remove LaunchScreen storyboard
change bundleId: bundle -> bundle1
run app and make sure you got a new launch image
change bundleId: bundle1 -> bundle
Enjoy!
UPDATE
LaunchScreen contains iPhone x2 and iPhone Retina 4. If you're use 480x960 image for retina4 you'll got a funny
issue.
I'm a very new to iOS.
My Xcode version is 7.2.1 and I'm trying to run on iOS9 using Swift.
My problem is that I'm very confused with how I should be creating the Launch Screen Image.
I found that there are many ways of creating the launch screen images for different version of iOS.
Can someone please explain to me how to setup my launch images?
The process I've followed is:
I create Launch Screen.storyboard I create different sizes of
launch screen images in Photoshop.
In General tab, Choose Main Interface "Main".
In App icons and launch images> Launch images source "Brand Assets".
I click on the arrow beside of Brand Assets, and then I put different sizes of images. (iPhone- iOS 8,9 , iPad- iOs 7-9 (Portrait and landscape), iPhone portrait).
Launch Screen File is "empty". I didn't choose anything.
After all I run on iPhone 5 simulator. It did not show anything and just black screen appear.
One thing I want to know is that do I need to put a UIImageView in my Launchscreen.storyboard?
Isn't it automatically retrieved from the Images.xcassets folder?
you can set Launch Screen like this
step 1: Go to Target -> App icon and luanch images
step 2:
step 3: LaunchScreen.storyboard
When you start a new project, you get LaunchScreen.storyboard below are the steps you should follow:
Put Image View in the viewcontroller present in the LaunchScreen.storyboard
Use autolayout to adjust the image view as per your need.
Select the imageview, go to attribute inspector and change the image.
Hit run
I am trying to make some different launch screens with Xcode 7 ios9.1
for different iOS devices (iPhone iPad)
If you take a look at the following images this is what I've done
Here I have made exactly all the images dimensions that it needs and I have filled out all the table with the images. I have made this by right clicking and selecting New iOS Launch Image.
Here I have set the launch images from LaunchImage.
And here is the launch screen storyboard which I have left it empty.
Now, when I run the app, it doesn't load the loading screen.
You need to Remove one String from your project info.Plist File for Launch splash screen.
It's Launch screen interface file base name.
I attach Screenshot for remove String in .plist file
Here you saw second line just remove from Your file
In addition to Maulik Patel`s answer, I found that if you set launch images improperly, maybe you need to delete the app on your iPhone or simulator, set launch images right and rebuild it again. It works for me. Maybe there is still some cache of settings in the app.
I inherited an iOS app and I've found that the full height isn't being used. Here's a pic on the iPhone 6:
Seems like it's stuck on an iPhone 4 resolution.
iOS deployment target: 7.1
Any ideas how to make the height fit to full screen for the entire app? Thank you!
The default launch screen is not utilizing the full size of the phone. You may need to create a launch screen first.
To create the launch screen go to File and then New File. Under the
User Interface tab select Launch Screen and save it.
From here, in your project file, select Targets and then Deployment
Info. Under app icons and images, change the Launch Main Screen to
main.
This should fix your issue!
To resolve the issue, follow the below steps:
Navigate to project settings
Under "App Icons and Launch Images" click on "Use Asset Catalog"
Select "Migrate" on the popup that appears.
This should fix the issue.
Here is a link to the reference where I've previously found this answer: Black bars appear in app
Hi I have an app that is almost ready and I am trying to add my launch screen , app icon and background image, and none of these work, all my images are the right size and format but they just dont show up when I run the app, I have no errors showing up and my background image works on the simulator but not on a real device ( the other images dont work at all ).
Any ideas as to why? thanks a lot
For your Launch screen and the app icon you need to put the images into the correct boxes in the images.xcassets area. The icon goes into the AppIcon asset, and the launch screen image goes into the LaunchImage asset. Below are screenshots taken from Xcode.
Launch Screen
App Icon image
If you haven't used assets before, all you do is drag the image that you imported into your project and drop it into the corresponding box in the asset.