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

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

问题描述

我想获得一些关于如何处理app(storyboard)设置为Universal的帮助。



当app运行时(带有导航栏的单个viewcontroller)在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天全站免登陆