iPhone App truncating at bottom while running in iPad - iphone

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.

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 only app cuts of the bottom of the screen when viewed in Ipad mode (2x)

my app is very basic and looks great on the iphone but in compatability mode 2x on the ipad it does not show the same screen as on the iphone. it was built as an iphone only app and has no major graphs. this is what Apple told me. 2.10: iPhone apps must also run on iPad without modification, at iPhone resolution, and at 2X iPhone 3GS resolution
I've had the same behavior on a physical iPad 2 for an existing working iPhone-only app.
In fact, after adding for each Retina images (suffixed by #2x) a corresponding non-Retina version in the project, my app launched successfully on the iPad, without any modifications...
I'm not sure it will work for you, but might worth to try ?

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.

How to keep iPhone 4- formatting on iPhone 5

So I am developing apps for the iphone 4s-, but I want iPhone 5 users to be able to access the app as well.
I want to make it so that if the user has an iPhone 5, it just has the little black bars at the top and bottom that you see in some other apps (I basically want to keep the formatting for the 3.5 inch screen.
Is there a way to test iPhone 5 on the simulator?
You should try deleting the default launch screen of the 4" display from the app summary. I think that shall do it
Is there a way to test iPhone 5 on the simulator? Because I can only run 4
iPhone (Retina 4-inch) equals the iPhone 5

Sharp images in iPhone app but grainy images in iPad app

We're using retina images in our iPhone app (i.e., double the size).
The images render great on an iPhone 4 -- sharp and crisp. However, for the same app, the images look grainy on an iPad when run in "1x" mode (i.e., iPhone app size).
The code is exactly the same for both apps. There is no iPad version. People just download the iPhone version on iPads.
Are we supposed to use different images for the iPad?
Here is the app: http://itunes.apple.com/app/dumpling/id514239919
If you download it on an iPhone and then again on an iPad, you'll see the difference.
If the app is not universal then they are rendering the iPhone version on the iPad. I'm assuming you aren't in "2X" mode so if you are on an iPad 1 or 2 your app would not be using the retina graphics so it'll look grainy. Have you tested this on an iPad 3? This should render correctly for you with the #2x images.