Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable iPhone 6 native resolution?

I have several games made with Cocos2d-iphone. All of them are old projects created with Xcode 4 or 5. All games scale fine on the new iPhone 6 and 6 Plus except one that seems to avoid the scaling mode and is running on native iPhone 6/6 Plus resolution. The project does not contain Launch images with the resolutions that seem to disable the scaling mode as explained here

Is there anything else that unlocks the native resolutions? I want the game to run in scaling mode for now until the HD assets are ready for the new resolutions.

I've made a new empty project that does not have any assets and it is working with the native screen sizes.

like image 770
Dunbar Avatar asked Sep 17 '14 13:09

Dunbar


2 Answers

1. Is there anything else that unlocks the native resolutions?

No for older projects you can only unlock native resolutions by adding launch images

2.I've made a new empty project that does not have any assets and it is working with the native screen sizes.

If you create project from XCode 6 naive resolution will be automatically enabled even if launch images are not added. I just created new sample project from Xcode 5.1.1 and than ran it on Xcode 6 and naive resolution was not enabled and views were scaled in order to fit the screen.

Hope that clears the confusion as your project are old as you mentioned naive resolution will not be enabled unless you add launch images.

Correction

Based on comments i am correcting my answer for projects created in XCode 6 you can delete Launch Screen File and also not add any iPhone 6/6+ specific launch images. The app will not run in native iPhone 6/6+ resolution.

So For iOS8 you can have either Launch images for iPhone 6 and 6 Plus or a Launch Screen File

like image 150
Bhumit Mehta Avatar answered Nov 14 '22 10:11

Bhumit Mehta


Bhumit is partially right, but I believe there is one missing detail. To disable native resolution (and ensure scaled resolution) I did the following:

  1. Remove LaunchScreen.xib from project as well as any iPhone 6/6+ launch images you may have.
  2. In your app's target, go to General, and under "Launch Screen File" blank out the entry.
  3. Clean and rebuild
like image 32
etayluz Avatar answered Nov 14 '22 10:11

etayluz