Iphone 5 full screen size - ios

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.

Related

Splash image Default-568h#2x.png is "unassigned"

For some reason, when running my app on the Simulator of iPhone 5, the image Default-568h#2x.png which is 640x1136 pixels, does not load anymore.
The issue causes the app screen to be cut off from the top and the bottom of the screen, resulting in poor usage of display assets.
The Asset Catalog classifies images to their respective devices, but for this image, the classification is 'unassigned'.
This is Xcode 7 for iOS9
In the Inspector to the right of the launch images, select the "iOS 7.0 and Later" checkbox for "iPhone Portrait". Then the "Retina 4" and "2x" options will appear for your 4" images.

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.

How to scale images to different iPhone screen using storyboards?

I am developing an app in which i am displaying certain images such as delete icon,search icon.I have images by names are
delete.png
delete#2x.png
delete#3x.png
I have created images.xcassets & added the images in that for 1x,2x & 3x. Now i have added an UIImageView on story board & it's default image is delete.png(32*32) it runs fine on 3.5 inch screen but images does not scale on 4.7 & 5.5 inch screen iPhone. Can some one please help me out.What to & how to do it?
I thick #Banning and #Fatti Khan suggestion will be the solution of the problem.
Instead of using image name as delete.png use just delete
as a ratio set the images with the exact size as example if the 1x image is 30 px then 2x must be 60px and 3x 90px
1x images are for the original iPhone through the 3GS - 'standard' resolution devices (3.5" screens)
2x images are for the iPhone 4, 4S (3.5" Retina screens) and also iPhone 6.
Retina 4 2x are for the iPhone 5 and 5s (4" Retina screens)
3x images are for the new iPhone 6+ (5.5" super-Retina [3x] screen)
EDIT:
please clean your project and then check again (cmd+shift+k) of delete your derived data.
also check your view is autolayout enable or disable.
or
add The launch image Default-568h#2x.png as i thought your Code unable to detect the different type of screens it have,so follow this steps
First I would like to suggest that,
Preapre all Images,
Select Project from Project Navigator And Go to Summary and scroll down this
screen appears, then right click on that and choose file from your
computer it will automatically copied to project and it will entered
in plist file also..
if your application is universal then you have
to set for iPhone and iPad Both.

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!

Splash screens on iPad 3

I am developing an application that should work correctly on both iPad 2 and iPad 3. I have spash portrait and landscape screens. I use Default-Portrait.png with size 768x1004 and Default-Landscape.png with size 1024x768 for iPad2 splash screens, and Default-Portrait#2x.png with size 1536x2008 and Default-Landscape#2x.png with size 2048x1496 for iPad3. When I strat my app for the first time in iPad3 the initial splash image is first the iPad3 one ( Default-Portrait#2x.png/ Default-Landscape#2x.png) and then it switches to the iPad2 one ( Default-Portrait.png/ Default-Landscape.png).
Does anybody know where could be the problem ?
On the latest versions of Xcode, you can set the default images directly from the project settings panel. Just tap on the project on the top-left bar, then select the target and then go to the Summary tab. Scroll down and you will see the "iPad development info" panel, drag and drop there your default images (the rightmost is the retina, iPad 3 images).
Try to set the default images this way, it will automatically name them for you and I think it even resizes them for you.

Resources