Developing in xcode 6, i want it to scale in iPhone 6 devices - ios

i've created a new app in Xcode 6, the size in the storyboard simulates 4 inch screen.
I want that on iPhone 6/6+ devices it will scale up, and not adjust.
I tried to remove the Launch Screen file, it is now scaled, but now i get 2 black stripes in the upper and bottom of the screen.
Please Help. Thanks.

Related

Different app resolution between iPhone 8 and iPhone 6,7 with same settings

we are developing an app that get images (640x480) from the rear camera and process it. Preview and images are displaced to top and right of the screen on the iPhone 8, but on iPhone 7 works perfectly as we want. We think the problem could be the values of focal length (fh,fv) set. As we know iPhone 7 & 8 has the same model of cameras and screen, but the response is different with the same settings. Any of you had the same problem or know how solve it?.
iPhone 8 incorrect behaviour (displaced at right and top).
https://imgur.com/a/tjt7btb
Correct beahaviour, centered in the middle of the screen (iPhone 7).
https://imgur.com/a/JkkCPJ9
Thanks in advance!.

Xcode 7 - How to disable iPhone 6 native resolution?

I want my app only to run in iPhone 4 and iPhone 5 resolution. In Xcode 6, you just needed to delete the Launch Screen file in order to lower the resolution ( How to disable iPhone 6 native resolution?)
However, now if you don't have a Launch Screen, your lower resolution apps will show up with black bars on top and bottom. So to fix this you have to add a Launch Screen Storyboard (iOS 9 Xcode 7 - Application appears with black bars on top and bottom)
Is there any way to run apps on lower resolutions without having these black bars show up?

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.

Why are iPhone 5s UI elements not scaling on iPhone6?

I understand that the native resolution for:
iPhone 5s: 320*568 points = 640*1136
iPhone 6: 375*667 points = 750*1334
They are both at 2x resolution.
Wouldn't that mean that if I have a UIButton of 202x43 (wxh) points in iPhone 5s and I run the app in iPhone 6, that same button should scale by 1.16 (375/320).
It is staying at 320*568 instead.
Why?
Hi I had the same issue,
Some views in iPhone 6 are not scaling properly (No launch screen added for iphone 6, +). Debugging I found some views I had 2 xibs one for 3.5 inches and 4 inches, I was loading the 3.5 inches views for the iphone 6 instead of the 4 inches xib.
if your project have a 4.7" launch image, button will be 202X43; when no 4.7" launch image, button will be scale by 1.16.

Change position of image for 3.5 and 4 inch screens

I have an iPhone app that I'm optimising for the iPhone 5's 4-inch screen. I also want it to work with iOS 6. I turned off autolayout to get it to work with iOS 6. I want everything in the view to stay the same distance from the bottom of the screen for both screen sizes. How do i do this?

Resources