简体   繁体   中英

iOS Universal storyboard on iPhone 5 & 5s issue

I would like to get some help on how to handle app (storyboard) is set to Universal.

When app run (with a single viewcontroller with a navbar) on a iPhone 5s simulator (with iOS 7.x), a thick black appears on top & bottom iPhone 5s with iOS 7.x SDK

具有iOS 7.x SDK的iPhone 5s

When switch to iPhone 5.0 with iOS 8.x simulator, no issue. iPhone 5s with iOS 8.x SDK

具有iOS 8.x SDK的iPhone 5s

Is there any code to fix (remove header & footer) gap in black?

The thick black bars on top and bottom (also known as letterboxing ) are because you have no launch image for the 4-inch screen. Add one. Without this, your app is treated as if it were running on a 4s (3.5-inch screen).

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