Black screen once Splash Screen for IOS7 is added / XCode 6, Asset Catalog in Universal App - ios

Im building a universal iPad / Iphone App - with Xcode 6.
I have problems with the splash screen using Asset catalog.
Everything is working fine, until I start adding splash screen images for IOS 7 and later - this suddenly causes the screen to just show black.
Test on iPhone 4S , 8.1 / device and simulator.
I double checked the sizes, played with naming conventions - although this shouldnt matter, re-created the asset catalog a few times, double checked that Launch Screen file has no contents - but nothing seems to help..

It is curious:
If you uncheck all device orientation in General settings of your app, the launch screen it shows perfect. After that if you select all device orientations still works. But when i selected only landscape orientation doesn't work the launch screen.
In iPad works fine. The iPhone it shows black screen
UPDATE:
Finally works:
I had to add the files into my project with the correct names, and it's works, the launch screen with universal app in only landscape orientation.
Default-Landscape~ipad.png (1024 x 768 px)
Default-Landscape~ipad#2x.png (2048 × 1536 px)
Default-568h#2x.png (640 × 1136 px)
Default-568h#3x.png (1242 × 2208 px)
Default#2x.png (640 × 960 px)
Hope help you

Related

iOS App not using full screen on iPhone 7

I have an iOS App originally developed for iPhone 4 and 5.
After doing some updates, I tried to run it on iPhone 7 (Simulator), the Views won't fill the screen any more. They (inclusing the title bar) leave a black margin on the right and the bottom of the screen.
I found a lot of similar posts regarding iPhone 5, where an appropriate launch image was missing. Yet, I have included all possible launch images in their correct sizes as asset catalogue (shows no warnings any more, puh), and the when the app is launched, the launch image is fullscreen.
The Layout/View is set to auto-layout, and resized well, if I change the size in the InterfaceBuilder.
Why does the View not scale on iPhone 7 ?!?
Try to add splash screen image to project with following name instead of assets folder.
Default-568h.png 320 x 568
Default-568h#2x.png 640 x 1136
Default-667h#2x.png 750 x 1334
Default-736h#3x.png 1242 x 2208
Default.png 320 x 480
Default#2x.png 640 x 960
Found Solution
In the View's "Attributes inspector" tab, in category "Simulated metrics", the attribute "Size" was set to "Freeform". After changing this to "Inferred", the sizing worked.
Note, that this seeting shall be checked in the MainWindow, as well. And it may require a build-clean, before this change reaches the Simulator.
Changing the "Size" also influenced the device selector in the InterfaceBuilder (the symbols for different iPhone and iPad models), making it actually adjust the size when clicking an iPhone model or changing orientation... Before, nothing had changed when clicking a model from the selector.
yes that was also working but in this question launchscreen are mentioned so i have gives answer according to that point.

Launch Screen Image size for all iOS screen sizes

I am trying to create a lunch screen image for my iOS app. But I am not sure whats the right size for it.
According to apple website for iPhone 6 the size should be 750 x 1334 (#2x) for portrait.
But my question is, how to create a launch screen image that will fit for all screen sizes such as iPhone 5, 5s, 6, 6 plus, iPads etc?
Whats the correct way of doing this?
Go to images.xcassets
there you can see launch image sizes.Just Enable iOS version from right side.
iPhone Portrait iOS 8:- 1242*2208 (5.5 inch)
750*1334 (4.7 HD)
iPhone Landscape iOS 8:-2208*1242 (5.5inch)
iphone Portrait iOS 7,8 :- 640*960 (#2x)
640*1136 (Retina)
iPhone Portrait 5,6 :- 320*480 (#x)
640*960 (#2x)
640*1136 (retina4)
But my question is, how to create a launch screen image that will fit
for all screen sizes such as iPhone 5, 5s, 6, 6 plus, iPads etc?
That will be very hard to do. The devices have different aspect ratios and the difference in size between say iPhone 5 and iPad Air is pretty big to use one image for all. If you want to use the classical launch screen with a screenshot, resizing one image won't look the same as the user interface on different devices. If you want a launch bitmap image you will need to supply all the necessary sizes.
Whats the correct way of doing this?
You can create either launch PNG image or launch screen as a storyboard.
For launch image, your project has an assets catalog. Either use existing or add new iOS launch image. The editor will show you all required sizes.
For a storyboard, your application probably already has LaunchScreen.storyboard. You typically won't create specific size or sizes here, but use auto layout that will resize the screen appropriately.

iphone app size smaller than screen

I'm developing an app and have come against a strange issue I can't find the answer for - when testing the app on an iPhone 5 the whole app display window is shrunk down to what looks like a 3.5 size display (the top and bottom of the screen are black and even the status bar is pushed down). When I test the app on an iPhone 5s running iOS 8 it displays full screen as expected.
Also when testing in the iOS simulator for iphone 5, and 5s it displays as expected. I'm using xcode 6 for development.
Any help would be greatly appreciated.
You need to set splash screen for your app. Otherwise it will take 3.5 screen size.
Just set the splash screen and you will be done.
So from iOS8, you can use a .xib as your Launch image, but if you have to support past versions of iOS, you have to provide static SplashScreens.
here is a link about replacing the launch image with a .xib file
If you have to use static Launch images, you have to add every supported resolutions:
320 x 480 - not retina iPhones
640 x 960 - retina 3.5" iPhones
640 x 1136 - retina 4" iPhones
750 x 1334 - iPhone 6
1242 x 2208 - iPhone 6 Plus
use size class approach on any height and any width. Hope you will get your solution from the following link
http://captechconsulting.com/blog/tyler-tillage/ios-8-tutorial-series-auto-sizing-table-cells
just clarify on the other answers, make sure you also set the 'Launch Image Source' under 'General' -> 'App Icon and Launch Images'
screen shots....
...mine used to be....
...and i changed it to... (and set an image)
GLHF!

Iphone 5 full screen size

I have included a launch image named: Default-568h#2x.png (640x1136) in the bundle. But the iPhone 5 still has that two vertical black bar on both right and left side in landscape mode. If I removed all launch images from the Images.xcassets then it shows up with full screen.
What did I do wrong?
I believe you have to actually add a launch image in the "R4" (Retina 4 inch) image well. It seems that you've only added a launch image for the "2x" (Retina 3.5 inch), and if iOS if Xcode isn't pointed towards a 4 inch default image, the app will remain in 3.5 inch mode.

New iPad displays iphone app's Launch images as app icon, not App Icon image

My app, built only for iPhone, doesn't show Icon correctly in new iPad, which has retina display. While installing the app, app Icon is displayed correctly. But After finishing installation, the app's launch image is displayed as the Icon, not the Icon image.
Since it's not the universal app, there seems to have no place to configure something for iPad device in Xcode.
In iPhones including 3Gs, 4, and 4S, and old iPads, I don't have this problem.
I found what I've done incorrectly by chance. In app info plist file, Default.png and Default#2x.png was added to "Icon Files" entry. I don't know why. I guess I've manipulated Xcode oddly before.
From Apple Docs on Application Icons:
If you’re creating a universal application, you need to supply application icons in all four sizes.
For iPhone and iPod touch both of these sizes are required:
57 x 57 pixels Icon.png
114 x 114 pixels (high resolution) Icon#2x.png
For iPad, both of these sizes are required:
72 x 72 pixels Icon-72.png
144 x 144 (high resolution) Icon#2x.png
And to keep simple, you should use the recommend names for each icon. Take a look at How are the icon files in my application bundle used on iPad and iPhone?
The following screenshot was taken from pinch multimedia iOS 5 icon sizes.

Resources