iOS: test app for iPhone in iPad, screen size

900 views Asked by At

I have a stupid question: Why when I debug an app for iPhone in an iPad the simulation start in a iPhone 4 screen and not in other types of screen?

2

There are 2 answers

5
dstudeba On

To set the App to work on a different size screen you must add that screen size to the LaunchImage asset.

1) Create an splash screen launch image for the size of the iPad you want to use.

2) Import it into your project

3) Open images.xcassets in the Project Navigator

enter image description here

4) Select LaunchImage

5) Drag and drop the splash screen launch image to the correct iPad asset

enter image description here

It is very frustrating and seems strange, but the Launch Image size tells the App what dimension it can run on. Setting image sizes in your screen or using auto layout won't work unless that Launch Image size has a splash screen

0
MGY On

If I understand you correct, please use this button to choose which one you want to use in simulator :

enter image description here

when you click you should able to see some list like this :

enter image description here

If you're not able to see other iOS version you can add them in Xcode/Preferences/Downloads section :

enter image description here

please let me not if you're not asking this.