简体   繁体   中英

iOS8 view is fine but is smaller on iOS7

I am currently working on an iOS application with a Deployment Target of 7.1. Most of my testing has been performed in an iOS8 environment with no issues. I hooked up an iOS7 (5s) test device and found that the view is showing itself as through the phone is a 3.5 (4). I'm not sure what the difference is between iOS7 and iOS8 that would cause this but I can't seem to find a solution. I have rebooted the device, reinstalled the app, and made sure all constraints were set properly in the dev environment. Any ideas?

Thank you in advance.

Use splash screen images not splash screen xib. In my case I have the same problem iOS7 device has black stripe at top and bottom. So I change the settings for splash screen and used images as a splash screen instead of xib and it solved my problem.

确保您的应用具有4“设备的启动屏幕。否则,它将默认为3.5”设备。

You have to create a LaunchImage in the xcassets file. That will solve your problem.

在此处输入图片说明

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