使用启动屏幕时,屏幕底部显示黑条 [英] Black bars displayed at the bottom of the screen when using a launch screen

查看:37
本文介绍了使用启动屏幕时,屏幕底部显示黑条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的显示器出现黑条问题.在启动屏幕文件中添加 main.storyboard 之前,顶部和底部有两个栏,但是当我使用文件启动屏幕时,楼下有两个栏.此显示在我的屏幕上:

我的问题是如何删除楼下的两个横栏?知道我必须使用文件启动屏幕",并且如果不使用文件启动屏幕",则在导出项目时会遇到另一个错误(900,096).

摘要:

  • 不启动屏幕文件:我的项目运行正常,但无法导出到iTunes.

  • 带有启动文件的屏幕:屏幕底部有两个栏.

那么,我该如何删除楼下的两个酒吧?

我正在使用iPhone 5(iOS 9.2)&Xcode 7.2

解决方案

到目前为止,最简单的方法是使用 LaunchScreen.storyboard 创建一个新项目,然后将设置复制过来./p>

从本质上讲,您希望用情节提要替换旧的启动屏幕图像.看起来像这样:

  • 故事板>显示文件检查器>用作启动屏幕
  • Storyboard>视图控制器>显示属性检查器>是初始视图控制器
  • 项目>常规>部署信息>主界面> LaunchScreen
  • 针对[iPhone]和[iPad]重复
  • 项目>常规>应用程序图标和启动图像>启动屏幕文件> LaunchScreen

如果设置正确,则您的 Info.plist 应该具有 LaunchScreen .storyboard ,而 UILaunchStoryboardName&下没有 .storyboard .UIMainStoryboardFile 属性:

 < key> UILaunchStoryboardName</key>< string> LaunchScreen</string>< key> UIMainStoryboardFile</key>< string> LaunchScreen</string> 

I have a black bar problem with my display. Before I added main.storyboard in the Launch Screen File, there are two bars at the top and bottom, but when I used File Launch Screen, there are two bars downstairs. This display on my screen:

My question is how do I remove the two bars downstairs? knowing that I have to use File Launch Screen and if I do not use File Launch Screen, I have another error (itm of 900,096) when I export my project.

Summary :

  • Not Launch Screen File: my project works fine, but I can not export to iTunes.

  • Screen with Launch File: there are two bars at the bottom of my screen.

So, how can I remove the two bars downstairs?

I am using an iPhone 5 (iOS 9.2) & Xcode 7.2

解决方案

From far, the easiest way is to create a new project, with a LaunchScreen.storyboard, and copy the settings over.

In essence, you want to replace your old launch screen images by a storyboard. It will look something like this:

  • Storyboard > Show the File inspector > Use as Launch Screen
  • Storyboard > View Controller > Show the Attributes inspector > Is Initial View Controller
  • Project > General > Deployment Info > Main Interface > LaunchScreen
  • Repeat for [iPhone] and [iPad]
  • Project > General > App Icons and Launch Images > Launch Screen File > LaunchScreen

If setup properly, your Info.plist should have LaunchScreen .storyboard, without the .storyboard under the UILaunchStoryboardName & UIMainStoryboardFile properties:

<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>LaunchScreen</string>

这篇关于使用启动屏幕时,屏幕底部显示黑条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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