Launch app on iPad in 2x mode with iOS 7 - iphone

Before iOS 7, iPhone apps that opened on iPads used to launch in 2x mode. iOS 7 seems to force all apps, even if they weren't designed for the iPad, to launch in 1x mode. How can we force our app to launch in 2x mode on iPads using iOS 7?

iPhone apps on iPads running iOS 7 now always open as a Retina iPhone app, while on iOS 6 they opened as a non-retina apps on non-retina iPads.
On Retina iPads (iPad 3 and 4) the apps may display in 1x (iPhone sized) or 2x (taking as much of the iPad screen as possible) and may be toggled.
On non-Retina iPads (iPad 2 and iPad mini) the apps only display in 2x mode and cannot be toggled. This is because the non-retina iPads do not have enough pixel density to display the retina iPhone apps at the "normal" size.
This behavior is determined by the OS and cannot be changed by your app.

Related

iPhone-Only App, when running on iPad which iPhone does it renders?

which iPhone does the iPad 10.5" renders when it runs an iPhone-only app?
(if some one could give more information also about the 12.9" and etc... would be great too)
The screen point resolution is reported as 375x667 or a 4.7" screen.
This also equates to an iPhone 8 or an iPhone 8+ in display zoom mode.
See PaintCode's guide for more details on display zoom mode.
https://www.paintcodeapp.com/news/ultimate-guide-to-iphone-resolutions
The 12.9" iPad Pro runs iPhone apps as a 4.7" iPhone (8, 7, 6S, etc).
All other iPads run iPhone apps as a 3.5" (4S, 4, etc).
You can easily find this out yourself by running an iPhone app in the various simulators.

iPhone App truncating at bottom while running in iPad

I am developing an iPhone app which should support iPad (not compatible but with support for 1X and 2X option at bottom). My app supports iPhone 5,6 and 6 plus as expected, but when I run the app in an iPad some part of the screen is getting truncated at bottom. How do I fix this? It should show the full iPhone screen in iPad.
Make you app support iPhone 4s screen size. It seems that iPad runs iPhone app as in a 3.5 inch screen.

Where can I find the non-retina iPhone Simulator running iOS 7.0 in Xcode 5?

Where can I find the non-retina iPhone Simulator running iOS 7.0 in Xcode 5?
There is no iOS 7 non-retina iPhone simulator as iOS 7 is only supported by retina iPhones. If you want the non-retina because of screen space you can use Window -> Scale -> 75% or 50%.

When I run iPhone app on iPad the screen resolution is wrong. How to fix this?

I encountered with a strange problem. I develop an application which is targeting iPhone device family with Retina 3.5 and 4. All the time I used iPhone 5 simulator to test all the UI and functionality and everything was good but know I have to test push notifications. I have iPad 4 (model MD522ZP/A) as an iOS 6 device. When I run my app on it all the UI layout became wrong. The most weird problem is when I tried to check display resolution with this code:
NSLog(#"RESOLUTION = %#", NSStringFromCGSize([UIScreen mainScreen].bounds.size));
I got this : RESOLUTION = {320, 480}. But it is iPhone 3 resolution! Why iPad didn't use Retina 3.5/4 resolution ? And how can I fix it? I don't want to create separate xibs only for iPad testing but I want to test my app on it so that all the UI elements will fit on screen.
Hope for the help.
It's not wrong. It is doing exactly the right thing. All references to sizes are in points, not pixels. When you get the bounds, it will be 320x480 on all 3.5" screens whether they are retina or not. Try it on any 3.5" retina device. You will get the same log output.
The iPad does not emulate a 4" device when running an iPhone-only app. It will always be a 3.5" iPhone compatible mode.
So seeing 320x480 is the correct size to expect.
Think of it this way. A retina iPad will show an iPhone-only app like it is running on a 3.5" retina iPhone. A non-retina iPad will show an iPhone-only app like it is running on a 3.5" non-retina iPhone.

iPad Retina - iPad uses the iPhone retina images

This is a little bit weird. Now, I am developing an app that's universal. However, I don't provide images for the iPad retina (iPad 3 and 4), but still retina images available for the iPhone. Now, the app uses the retina images of iPhone on iPad 3 and 4 instead of using the non retina, yet with correct size, iPad images.
To clear this out:
- iPad 1 and 2 uses the iPad non retina images (normal).
- iPad 3 & 4 uses the iPhone retina images instead of the iPad non retina images!
I tried a solution where I renamed the iPhone retina images so that it will end with ~iphone#2x. This fixes the issue on the iPad 3 and 4 but now the iPhone 4, 4s & 5 uses the non retina images!
IIRC, you got it the other way around. It should be myimage#2x~iphone.png.