Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode 8: how to adapt iphone app for iPAD

Even if my client made me design an iOS app only for iphone devices, now he wants me to run it in iPADS too, as a preview before loading the app in the App Store (ipads 2 or 3). My app has many constraints so that it's showed good on any kind of iphone (> 5S). So, I set the "Targeted Device Family" to "1,2" in the info.plist of the app and I tried to install it in a pair of iPADs. Even if in iphone eberything is good like the following: enter image description here

the same thing does not happen in the ipad:

I do not understand why everything is so magnified and not full-screen. What can I do just to fix this a little?

enter image description here

This is what I see in info.plist --> Build Settings

enter image description here

like image 859
SagittariusA Avatar asked Mar 11 '23 01:03

SagittariusA


2 Answers

Set rather this value in your Target -> General settings:

enter image description here

My app is working properly on the iPad even with Target Device Family set to 1.

enter image description here

like image 120
pedrouan Avatar answered Mar 15 '23 15:03

pedrouan


Add key "UIRequiresFullScreen" and set Yes to your info.plist file enter image description here

like image 36
Satish Mavani Avatar answered Mar 15 '23 14:03

Satish Mavani