简体   繁体   中英

iphone app size smaller than screen

I'm developing an app and have come against a strange issue I can't find the answer for - when testing the app on an iPhone 5 the whole app display window is shrunk down to what looks like a 3.5 size display (the top and bottom of the screen are black and even the status bar is pushed down). When I test the app on an iPhone 5s running iOS 8 it displays full screen as expected.

Also when testing in the iOS simulator for iphone 5, and 5s it displays as expected. I'm using xcode 6 for development.

Any help would be greatly appreciated.

You need to set splash screen for your app. Otherwise it will take 3.5 screen size. Just set the splash screen and you will be done.

So from iOS8, you can use a .xib as your Launch image, but if you have to support past versions of iOS, you have to provide static SplashScreens.

If you have to use static Launch images, you have to add every supported resolutions:

  1. 320 x 480 - not retina iPhones
  2. 640 x 960 - retina 3.5" iPhones
  3. 640 x 1136 - retina 4" iPhones
  4. 750 x 1334 - iPhone 6
  5. 1242 x 2208 - iPhone 6 Plus

use size class approach on any height and any width. Hope you will get your solution from the following link http://captechconsulting.com/blog/tyler-tillage/ios-8-tutorial-series-auto-sizing-table-cells

just clarify on the other answers, make sure you also set the 'Launch Image Source' under 'General' -> 'App Icon and Launch Images'

screen shots....

...mine used to be....

在此输入图像描述


...and i changed it to... (and set an image)

在此输入图像描述


GLHF!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM