There were many articles written and questions asked about iPhone 6 and iPhone 6 Plus screen sizes. This article provides a great explanation.
However, I am confused when testing my app in the simulator.
I have the following code in AppDelegate
.
- (BOOL) application: (UIApplication *) application didFinishLaunchingWithOptions: (NSDictionary *) launchOptions
{
UIScreen *screen = [UIScreen mainScreen];
NSLog(@"Screen width %.0f px, height %.0f px, scale %.1fx",
(double) screen.bounds.size.width,
(double) screen.bounds.size.height,
(double) screen.scale);
return YES;
}
I get the following results from iOS simulator for various devices:
iPhone 4S: Screen width 320 px, height 480 px, scale 2.0x
iPhone 5: Screen width 320 px, height 568 px, scale 2.0x
iPhone 5S: Screen width 320 px, height 568 px, scale 2.0x
iPhone 6: Screen width 320 px, height 568 px, scale 2.0x
iPhone 6 Plus: Screen width 320 px, height 568 px, scale 2.0x
The results are fine for iPhone 4S, iPhone 5 and iPhone 5S. However, I expect larger screen size for iPhone 6 and iPhone 6 Plus and I also expect scale 3.0 for iPhone 6 Plus. What is wrong?
Thanks for explanation.
The physical dimensions of the phones are different, too. The iPhone 6 is 5.44 inches tall by 2.64 inches wide by 0.27 inches thick. The 6 Plus is 6.22 by 3.06 by 0.28 inches. While those differences are not huge, pay attention to these details if keeping your pockets or purse as light as possible is important to you.
The iPhone 6 features a 4.7-inch display with a 1334×750-pixel resolution at 326 ppi and the iPhone 6 Plus features a 5.5-inch display with a 1920×1080-pixel resolution at 401 ppi.
Even though the iPhone 6 plus and iPhone 7 plus pretty much the same size, the layout of the phones are slightly different. Normally the differences are not enough to cause any major issues with using older cases, but in this instance, it's not a good idea. The camera is different on the new iPhone 7 plus; it's wider.
Apple iPhone 6s Plus Display Type IPS LCD Display Size 5.5 inches, 83.4 cm 2 (~67.7% screen-to- ... Display Resolution 1080 x 1920 pixels, 16:9 ratio (~401 ppi ... Display Protection Ion-strengthened glass, oleophobic coati ... Display 3D Touch display
Apple stuck with this size for a few generations of its iPhone – the iPhone 6, iPhone 6s, iPhone 7, and iPhone 8. Most people that have iPhones, have one of those phones. Therefore, Apple’s 4.7in LCD 720p display is probably the most used iPhone display on the planet right now.
The iPhone 6 and iPhone 6 Plus are smartphones that were designed and marketed by Apple Inc. They are the eighth generation of the iPhone, succeeding the iPhone 5S, and were announced on September 9, 2014, and released on September 19, 2014.
Apple iPhone 6 Plus smartphone. Announced Sep 2014. Features 5.5″ display, Apple A8 chipset, 8 MP primary camera, 1.2 MP front camera, 2915 mAh battery, 128 GB storage, 1000 MB RAM, Ion ...
It seems like you didn't provide correct launch images to your app. When there is no correct launch images set, the app will run like on iPhone 5/5S, that's why you are having these confusing results while logging. iPhone 6 screen size is 375x667 px scale x2, iPhone 6+ 414x736 px scale x3. So, if you want to set launch image for iPhone 6 it should have 750x1334 px size, and 1242x2208 for iPhone 6+ respectively. Good Luck!
EDIT:
As rmaddy mentioned in the comments, it's better to use launch screen storyboard with proper layout constraints to fit all screens, than having bunch of images for all screens(which also increases the app size).
You have to add Launch Image in Imageasset for iPhone 6 and 6+ with proper resolution.
if you dont know resolution please check right side navigator > choose 3rd option. right now in screenshot you can see Expected size 1242x2208 pixel
please check attached screenshot. once you add this all images then only you will get proper.
for iPhone 6 it will log
Screen width 375 px, height 667 px, scale 2.0x
for 6+
Screen width 414 px, height 736 px, scale 3.0x
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With