SagittariusA
SagittariusA

Reputation: 5427

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

Upvotes: 4

Views: 2431

Answers (4)

oskarko
oskarko

Reputation: 4168

on XCode 12, you have to look for Targets -> General Tab...

enter image description here

Upvotes: 0

Prashant Gaikwad
Prashant Gaikwad

Reputation: 3802

I found these steps handy when you want your iPhone app to adapt for iPad -

  1. Testing the complete app first
  2. All screens design need to check for eg. Button or Images width and height as per iPad screen
  3. Create different versions of XIBs for particular screens
  4. Check if all images are in right resolutions
  5. Handle auto-sizing and orientation
  6. Find how and when to use the new iPad elements like split view controller, popover view controller, and popover list
  7. An important tip - Be really careful never to have two popover controllers visible at the same time – it’s confusing to users and your app will get rejected if you do

Upvotes: 0

Satish Mavani
Satish Mavani

Reputation: 5075

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

Upvotes: 2

pedrouan
pedrouan

Reputation: 12910

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

Upvotes: 5

Related Questions