iPhone 5 和 iOS 通用故事板5s问题 [英] iOS Universal storyboard on iPhone 5 & 5s issue

查看:27
本文介绍了iPhone 5 和 iOS 通用故事板5s问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想获得一些关于如何处理应用程序(故事板)设置为通用的帮助.

当应用程序在 iPhone 5s 模拟器(使用 iOS 7.x)上运行(使用带有导航栏的单个视图控制器)时,顶部会出现黑色底部

是否有任何代码可以修复(删除页眉和页脚)黑色空白?

解决方案

顶部和底部的粗黑条(也称为 letterboxing)是因为您没有 4 英寸的启动图像屏幕.添加一个.如果没有这个,您的应用会被视为在 4s(3.5 英寸屏幕)上运行.

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

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

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).

这篇关于iPhone 5 和 iOS 通用故事板5s问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆