desiging an app for iphone 5/6/6+ screens

I am developing an app that will only be targeted for the iphone 5/6/6+ screen sizes, and therefore I have a identical designs for the different screens across the app. Because the iphone 5/6/6+ have equal w/h ratio's, I want the the whole screen tor resize identically to match the ratio of the device. For example, I am designing a view controller in storyboard for an iphone 6, and would like whatever is displayed on the view controller to appear the same way on the iphone 5 and 6+, just resized/downsized with the same aspect ratio. How should I achieve this? I am pretty sure that size classes should not be used since I am only targeting these devices and not ipads/iphone 4s.


Thanks!

App Review WILL test your app on an iPad, and to your app it will appear to have the 3.5" screen. You will need to support the 3.5" screen.


You can make constraints relative to the width or height of some other view, such as the view controller's view which is normally full screen. Control-drag between two views, select Equal Widths and/or Equal Heights, and then you can select each constraint and fine tune the multiplier and constant if desired.

I am reading about how to do this in Chapter 5 of Beginning iPhone Development with Swift. David Mark and Jack Nutting are 2 of the 5 authors. It looks like you will have to use size classes. Apparently you can use one size class for the iPhone 5 and 6. And a different size class for the iPhone 6+.


This is an excellent book. They publish a new edition soon after a new iOS is released. I think this title is the 3 or 4 edition of the book that I've used. They have about 65 pages in the two chapters that cover this subject. You can get the book on Amazon.

Looks like 2015 edition was released March 21, 2015 - that might be for Xcode 6.3.1 & Swift 1.2, which was released in April, but has been outdated.


Swift is now at 2.0, which came out at WWDC 2015. Is there another release of that book since April?

This is actually incorrect - you can limit your app to iphone 5 and newer. Take a look into


https://developer.apple.com/library/ios/documentation/DeviceInformation/Reference/iOSDeviceCompatibility/DeviceCompatibilityMatrix/DeviceCompatibilityMatrix.html


Setting certain device capibilties in your info.plist will limit which devices the app can be deployed for/on.

While setting capabilities can limit to specific devices your app must actually require those settings or it will be rejected.

Of the settings, only metal and telephony are usable since every device supports everything else.


So, unless your app makes phone calls, it MUST run on the iPad in compatibility 3.5" mode.

I didn't say you couldn't limit the app to newer iPhones; I said you must also support the 3.5" screen size (for running on iPad in compatibility mode).

desiging an app for iphone 5/6/6+ screens
 
 
Q