简体   繁体   中英

Disable native resolution ONLY for iPhone 6 Plus

I need my app to not use iPhone 6 Plus' native resolution and rather scale up from iPhone 5/6.

I have removed the Launch Screen File and cleared "Retina HD 5.5" from the Launch Image, yet when people run it on iPhone 6 Plus, the app is still using its native resolution. Note that removing the "Retina HD 5.5" was sufficient to bypass iTunesConnect App Screenshots validation for iPhone 6 Plus, yet the app itself is not honoring that.

Is there anything else to remove to eliminate iPhone 6 Plus native resolution?

There is not. You can only support 6 and 6 Plus together or none of them. As soon as you use the Launch Screen File Xcode assumes you want to support them.

I really don't know why you want to do that, but there are some tricks to resize fields and buttons (I assume you want to do that)

You should be able to determine the screen size/native screen size so you can resize your CGRects for example.

https://stackoverflow.com/a/4779415/2826164

create an global function or variable to multiply your current width and heigth by, for example native width of 6+ = 1242*0,60306 = 750 native.

i'm not sure if you need 1080 or 1242 because of downscaling

More info about iphone 6+ resolution

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM