Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Limit app to running only on 4 inch devices IOS

Tags:

ios

I am creating an ios application for the iphone. I would like to make it run only on a 4 inch device (so the iphone 5 and the iPod touch 5). When I run it on one of these two, works fine. but when I run on the ipad, the X2 button appears, and the ipad simulates the old 3.5 inch display, not the 4 inch. Why?

like image 830
user2014474 Avatar asked Aug 28 '13 20:08

user2014474


2 Answers

You cannot choose an app to only be released for 4" devices, and you have no influence on what display the iPad simulates when it runs an iPhone only app. What you want is simply impossible.

like image 164
Scott Berrevoets Avatar answered Nov 14 '22 23:11

Scott Berrevoets


You can not limit your app to run on a specific screen size or not, only specific iOS versions. There are ways to check the orientation and size of the screen and have it look a certain way, but the app will still run.

You should just design the app to look good on both the 3.5 and 4 inch screens. You can do that by toggling the screen size button when creating in IB (if you use IB).

If you want to make your app able to run on both iPad and 3.5 and 4 inch iOS devices, you should make your app a "Universal" app.

But I understand what you mean by running it on the iPad simulator, and as @Scott said, the screen size displayed in the iPad simulator means nothing.

Instead of avoiding the problem (looks bad on 3.5") solve it (make it look good on both)!

like image 34
CaptJak Avatar answered Nov 14 '22 23:11

CaptJak