Search code examples
iosiphoneipadscreen-resolutionios-universal-app

iOS - Converting an iPad app to a universal app - resolution issue


I have an iPad app, which now needs to be converted into a universal one. I've set the target to Universal and now it can be deployed to an iPhone as well, however, I have a major issue: even though I've created my main view controller separately for the two device types, when I launch the app on an iPhone 5, the screen seems to have a resolution of 320x480, leaving black space on top and under the view. This doesn't seem to be an issue with the main window, because I changed the window's background to red, and the space filling up the height to 568px is still black, which means, that the window is also only 320x480.

Any help / idea would be appreciated.


Solution

  • Check the answer to this question:

    Q: Black bars showing when running app on iOS 7 (4 inch retina display)

    A: https://stackoverflow.com/a/18913189/4666621

    You're probably missing the image [email protected]