How to develop or port applications for iPhone 6.6+ screen resolution?

The new iPhone 6.6+ display has a new resolution.

What is required to develop new or transfer existing applications to a new screen size?

What should we do to make applications β€œuniversal” for both older displays and the new wide format?

+4
source share
3 answers

I use the following code to determine which device is working (it is a little quick and dirty, but it does the trick)

if( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone ){

    CGFloat screenHeight = [UIScreen mainScreen].bounds.size.height;
    CGFloat screenWidth = [UIScreen mainScreen].bounds.size.width;
    if( screenHeight < screenWidth ){
        screenHeight = screenWidth;
    }

    if( screenHeight > 480 && screenHeight < 667 ){
        DLog(@"iPhone 5/5s");
    } else if ( screenHeight > 480 && screenHeight < 736 ){
        DLog(@"iPhone 6");
    } else if ( screenHeight > 480 ){
        DLog(@"iPhone 6 Plus");
    } else {
        DLog(@"iPhone 4/4s");
    }
}
+1
source

According to the September 2014 release, when launching the iPhone 6, they mentioned that all of your existing apps work fine on the iPhone 6 and Plus without any changes. They will use @ 2x resolution.

However, if you use the BIG Screen, you can redesign / update.

0
source

All Articles