When I run the app on the iPad it uses currently the 4 inch screen which does not fit on the screen of an iPad, the app is an iPhone only app, but I want to run it on the iPad with scaling up the 3.5 inch screen.
How can I force the iPad to use the 3.5 inch screen and not the 4 inch?
And also the status bar is shown on the iPad and not on the iPhone, why is that also different?
The status bar on iPad in combatibility mode is completely outside of your reach. It's displayed on the edge of your screen not on the edge of the application window. This behavior cannot be modified by the application. Logically, you need the normal iPad status bar and you can't have another in the application. On the other hand, there is no reason to hide the iPad status bar because it can never overlap the application in compatibility mode.
The 4-inch is strange because iPads always show iPhone applications as 3.5 inch. If you see bad dimensions on the screen, then it's a bug in your code. Make sure you are setting frame sizes correctly.
Related
Devices is set to "iPhone" under Deployment info. In my Info.plist I have iPhone as Portrait only, and iPad as all 4 options. My app works fine on iPhone (no rotation as expected). It behaves the same on an iPad (no rotation) but of course then to view the app properly I have to hold the iPad like an iPhone with the Home button at the button. I don't want to have to do that. What I want is when the iPad is in landscape, e.g. with a keyboard, for the app to rotate but maintain its iPhone-like appearance, smaller, in the center of the display. How to achieve this?
How can I get the default keyboard to be shorter like the keyboard on the right?
The standard keyboard is the left, how do I get it to have the height of the one on the right?
The left keyboard is not taller than the right keyboard— they are the same height, in points. The difference is in the scale of the screen; i.e. the pixels are smaller on the right. Assuming that these are the same device, the difference is caused by one of two things:
The app on the left is not updated to support the higher resolution screens of the iPhone 6 and 6+. To remedy this, you can either specify a .xib as your "Launch Screen File" in the target's General settings, or add a launch image for iPhone 6 and 6+ to your asset catalog.
The app on the left is running on a device which is in "Zoomed" view mode. To change this, follow this path in your Settings app: General > Display & Brightness > View.
Edit: A good tip for recognizing such resolution differences (on an iPhone 6 or 6+) is to watch the clock as an app launches. If it gets bigger, then your device is set to the "Standard" view mode, and the application has not been updated to support iPhone 6/6+ resolutions. If the clock stays the same size, then either the app has been updated to support iPhone 6, or the device is in the "Zoomed" view mode (or both).
You cannot control the height of the keyboard. The keyboard on the left is looks taller because this app hasn't been updated for iPhone 6/6+ screens, so the keyboard and everything else in the app has been stretched.
See this question for how to support the new 6 screen sizes.
I've started using Xcode auto layout for my projects.
Auto-layout works perfectly when I'm testing on ios8 devices, it the view scales as needed.
However, things get a little crazy with ios7.
When I test my app on an ios7 iPhone 5 simulator, the app doesn't scale-up to the larger screen,
but only shows the 3.5 inch view, leaving black bars on the top and bottom of the screen.
I am using a tableView controller.
How do I scale the tableViewController up so that it fits on a larger screen in ios7?
(Like I've said, my app fits perfectly in ios8, on all screen sizes, but not in ios7.
Also, it scales fine on an ios7 ipad.)
thanks.
The Xcode (6) IDE should give a warning about this, that may not be so clear:
"Applications using Launch Screen Files and targetting iOS 7.1 and earlier
need to also include a Launch Image in an Asset Catalog."
This means you need to have the proper Launch-Images for the "Retina 4" screen,
which is 640 × 1136 pixels, and it should be configured in the assets-catalog,
just like your Application-Icons ("AppIcon"), but under "LaunchImage" there.
Once you add this 4-inch-compatible Launch-Image to your application,
iOS-7 will assume you are properly supporting the "Retina 4" screen,
and will launch the application in 4-inch mode.
I have an iPhone app that I'm optimising for the iPhone 5's 4-inch screen. I also want it to work with iOS 6. I turned off autolayout to get it to work with iOS 6. I want everything in the view to stay the same distance from the bottom of the screen for both screen sizes. How do i do this?
I already have deleted the 4" default black screen from my project, I uploaded my binary, and it still says my app supports the 4" screen. None of my views are set to the 4" screen. So is there a hidden section or something that im missing? Everything works perfect except it wants me to upload a screen shot for the 4" screen shot.
itunesconnect.com is not "detecting" that you app wants to use the 4" screen and there is not a setting to submit for only 3.5" screens. Now that the iPhone 5 is out, Apple simply wants everyone to submit a screenshots for the 4" screen. It is a little bit of a pain, but there is no way around it.
Every project has to support 3.5-Inch and 4-Inch.
The black screen is just set for splash screen being displayed when the app starts.
In this case, your app has no splash image on 4-Inch devices.