Default device orientation in Xcode 6 - ios

I've set up a new single view project in Xcode 6 for universal devices. This app is to run only in landscape mode on iPhones (even 6 and 6+) and any orientation on iPads.
In Xcode 5, you could specify in Deployment Info what device orientation can be used for iPhones and iPads. But in Xcode 6, it seems to have only one choice for all devices. This must be for the adaptive simplification process, I guess...
But, anyway, how can I specify these available orientations?

Check the below screen shot you have option in xcode6.

Related

iPad compatibility mode uses (unsupported) small iPhone size

My iPhone app's Deployment Target is iOS 10 (thus, it's for iPhone 5 and later). I haven't bothered making my many views fit on the small 3.5" iPhone 4 screen size because it will never be used on that small screen (due to the Deployment target being iOS 10). However, when my app runs on an 9.7" iPad, compatibility mode defaults to the 3.5" screen size, not 4 inch. I expected the iPad to respect the implication of my Deployment Target setting. I believe iPhone apps running on 12.9" iPad are shown using iPhone 5 size -- that's what I want.
I'm using Xcode 9. My iPad is running iOS 11.4. I'm not using Auto Layout (it's an old app with numerous views -- it used to run on the older iPhones, but I ripped out that code).
How can I get the iPad to respect my Deployment Target setting and use a 4" screen?

Must app be tested for all iphone sizes for approval

am newbie in iOS app development.
say, I have created an iOS Swift 3.0 App for iphone 6/6+ (7/7+)
I build Swift app for iphone 6/6+ (same as 7/7+). This means I use the standard Screen size 375x667 to start with.
In Xcode 8.2.1, there is a list of Devices from iPad to iphone 4s which you can use to test to see how your app fit into the targeted devices.
1) I started on iphone 6 (same as iphone 7), my app fit in and look good for this screen size. When I tested it on iphone 4, my App wont fit in; some UI control like TextView is missing. Must I fit my app for this iphone 4s?
2) The same app can fit in ipad (pro 9.7, 12.9 inch) but the UI control will look small.
I need your help for the following questions for app store submission.
a) It is a must that my app must fit in for all the screen size such as ipad and iphone 4s when I started out the app on iphone 6 or 7?
b) Can I just target iphone 6 and above?
Thanks
There is no explicit setting to target only the iPhone6 and above, rather Apple will frown over this and would not encourage it.
But by doing the following, you can target only iPhone5 and above.
In the Project --> Target --> General --> Set the targeted devices only to iPhone instead of iPad/Universal.
Again in, Project --> Target --> General --> Set the deployment target to iOS 10.0.
As iOS 10 does not support iPhone 4s and previous devices you can get away with this.
Also, iOS 10 adoption is already about 80% as reported on Jan 4th, 2017. So you are already targeting most of the users.

iOS iPhone app doesnt fill screen on iPad

I have an iOS app which resizes/looks fine between iPhone 4 through to iPhone 6s Plus. However, when I run the same app on any iPad device I get black bars on all sides of my view. I've tried several things to fix it but nothing has works. Here is what it looks like
I checked the following settings:
General>Deployment Info>Devices: iPhone
Autolayout turned on
Size Classes Disabled
No warnings in interface builder
Problem exists on ios 8.0 and 9.0
Works fine in iPhone devices
Xcode 7.2 (started project in Xcode 6.4)
Launch Screen.storyboard exists
I only want it to run on iPhone...
Paragraph 2.10 of App Store Review Guidelines
2.10
iPhone Apps must also run on iPad without modification, at iPhone resolution, and at 2X iPhone 3GS resolution
iOS iPhone app doesn't fill screen on iPad
That is the definition of an app not targeted for iPad, as explained above in the accurate comments from #NicolasMiari.
On the other hand, if you have a genuine reason to not target iPad, because the hardware does not provide a key capability you need, you can explicitly request for that capability, and your app will not launch (nor be proposed on the App Store when browsed from that device).
Examples include SMS, Telephony, HealthKit. See the Device Compatibility Matrix.

App on appstore has iPad support when iPhone family set?

I have an app on the App Store and I've made sure several times that iPhone is selected in: App > Target > General > Deployment Info > Devices > iPhone
..rather than Universal or iPad.
It appears every time the app is approved it still says iPad supported, how can I disable iPad support completely since the above "solution" doesn't work?
That is normal, iPhone applications can also run on iPad in a iPhone simulator mode.
This is the description of one application of mine only available for iPhone.
Compatibility: Requires iOS 7.0 or later. Compatible with iPhone,
iPad, and iPod touch. This app is optimized for iPhone 5.
This one just for iPad:
Compatibility: Requires iOS 7.0 or later. Compatible with iPad.
and this Universal (both iphone and ipad, no simulator)
Compatibility: Requires iOS 7.0 or later. Compatible with iPhone,
iPad, and iPod touch. This app is optimized for iPhone 5.
It seems the same, but in the reality there is also a + sign with written:
This app is designed for both iPhone and iPad
Making them "Just for iPhone" doesn't let iPads not use them. Imagine this bit of a crisis: on the first iPad's release, how did apps get on the store, since they were designed for iPhone? Developers had some options:
Make an "HD" or "iPad" version. This involved redoing the entire UI so it would fit on the bigger screen.
Do nothing. The iPad's would get the iPhone version of the app, but they would just be, as you can guess, oversized iPhone apps.
After a couple years, there was another option:
Make a "universal" app. This allowed both UI's, both big and small, retina and 1x scale devices, to be "bundled" together in the same Bundle. (heh, bundle pun.) Puns aside, this allowed for apps like "Facebook" to run on iPad, iPhone 3GS, iPhone 4, iPhone 5, iPhone 6, the future iPhone cheeseburger double-decker 7+, and everything else, without having to remake the entire app.
On the iPad, as mentioned by Andrea, it runs in an "iPhone Simulator" mode. This makes the tiny screen be rendered in the tiny screen scale, and, since iPad is over twice the size of the iPhone, it gave the iPad a "2x" button to zoom it in and make the UI bigger.
It's like an app designed for iPhone 4 running on an iPhone 6 Plus.
The iPhone 4 renders stuff at 960x720 landscape or 720x960 portrait, and iPhone 6 Plus's display is much bigger. To accommodate, it letterboxes the content and scales it up automatically.

Run an iOS6 App on New iPad

Im creating an App for iPhone5 and it runs good in iPhone 6.0 simulator (with 4-inch display). Now i wanna test it on my New iPad, which has been upgrade to iOS6, but the screen is automatically shrinking into 3.5-inch. Is there anyway to keep the screen being 4-inch on New iPad? Thanks in advance:)
The "compatibility mode" on iPad runs iPhone-only apps in their 320x480 format—in essence, it is compatible with iPhone <5. There is no way to make it compatible with the 320x568 format used by iPhone 5 and iPod touch (3rd Gen).
So it will always run with your app’s "standard" layout, not the "high" one.
Thus, the short answer is "no".

Resources