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

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.

Related

iOS Autolayout not working for iphone 6

I'm having real trouble here for some time. I'm not using size classes (app is for os 6 +). I'm using auto layout, I don't want to have multiple storyboards for each screen size. For 3.5 and 4 inch screen everything is ok. For 4.7 + inch it's not. So to show you what is the problem. This is for 3.5 and 4 inch screen:
This is 4.7 inch screen:
As you see, right arrow goes to the left. It has Vertical Center in container and its height is 28x28. It has right constraint 8 points like this (I've unchecked Constrains to margin):
I cannot make it work for iPhone 6 and iPhone 6 plus. What am I doing wrong here?

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

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.

Xcode 6 Bug? Adding iPhone 6/6 Plus LaunchImage Changes App Constraints

I have my project setup on AutoLayout, works fine with iPhones 4 - 6 Plus. However, when I add in the LaunchImage for iPhone 6 and 6 Plus, the frames and constraints for the entire app no longer take up the entire screen. Instead, the entire app fits in the top left area of the screen.
If I remove the LaunchImages for iPhone 6 and iPhone 6 Plus, then the issue goes away and the elements of each View Controller once again have the correct coordinates and sizes.
I am using the following in Images.assets:
- 2x iOS - Portrait 7,8
- Retina 4 - Portrait 7,8
- Retina HD 5.5 Portrait iOS 8
- Retina HD 4.7 Portrait iOS 8
There are no warnings regarding the asset catalog, and all the LaunchImages are at the correct dimensions. I have attempted to Migrate the images over but with no luck.
When you don't provide iPhone 6 and iPhone 6 Plus launch images, iOS 8 simply scales your interface up (makes everything larger to fit).
Once you provide those images, you will now have access to the larger screen resolutions, and just because you use auto-layout, does not mean your views will resize. If you have constraints that are limiting the height and width of your views, you will get what you are seeing. I would check on your constraints on your views to make sure they are done properly and allow the view to grow when the screen size is larger than 320 x 568.

How to target a specific iPhone size when developing in Xcode 6.1

I've built my 4 inch screen and 3.5 inch screen apps in Xcode 5.1.1. Yesterday I downloaded Xcode 6.1 to build those same apps for iPhone 6 and 6+. I'm not using auto layout (because it messes with my UIImageViews) and to use size classes you must also use auto layout. So I can't use size classes either. When I use that 1 storyboard for 4.7inch and 5.5 inch iPhone storyboards that are in Assistant Editor, i want to move an image in only 4.7 inch but instead the image moves in both 4.7 inch and 5.5 inch iPhones. How do I make it that the image moves only in 4.7 inch instead of 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!

Resources