导航栏宽度的Xcode 8故事板警告 [英] Xcode 8 Storyboard warnings for Navigation Bar width

查看:85
本文介绍了导航栏宽度的Xcode 8故事板警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Xcode 8的每个故事板中,每个导航控制器的导航栏都收到约束警告.

I am getting constraint warnings for my Navigation Bar's for each of my Navigation Controllers in each of my storyboards in Xcode 8.

要消除警告,我将导航控制器的模拟度量"->顶栏"设置从推断"设置为无",然后再次返回,警告消失了.直到下次打开情节提要板时,警告才会再次出现.

To get rid of the warning I set the Navigation Controller's Simulated Metrics->Top Bar setting from Inferred to None and then back again, and the warning goes away. Until the next time the storyboard is opened, then the warnings come back.

我的情节提要具有iPhone SE显示设置,并且导航栏不是半透明的.

My storyboard has the iPhone SE display setting, and the navigation bar's are not Translucent.

推荐答案

从iPhone SE更改设备预览也会删除警告.

Changing the device preview from iPhone SE also removes the warning.

Xcode 8在Interface Builder中存在一些严重的错误:以及这一点,它有一个讨厌的习惯,即对各种视图进行随机寻找框架更改-在我的Main.storyboard中,它决定制作一些键盘输入附件.观看1,000 x 1,000点,并且其中的所有内容的帧都为{0,0}-{1000,1000}.

Xcode 8 has some serious bugs in Interface Builder: as well as this one, it has a nasty habit of random-seeming frame changes to all sorts of views - in my Main.storyboard, it decided to make some keyboard input accessory views 1,000 by 1,000 points, and everything inside it had a frame of {0,0} - {1000,1000}.

对各种UITableViewCell进行了相同的操作,但不是全部.

Did the same thing to various UITableViewCells, but not all of them.

将所有内容恢复原状很久,清理了build文件夹并重新编译,但是一旦情节提要板打开,问题便立即消失了.

Changing everything back took ages, cleaned the build folder and recompiled, but the problem came back straight away as soon as the storyboard was opened.

我必须卸载8并回到7.3.1, 我提起雷达,在开发论坛上看到了其他有同样问题的人.

I had to uninstall 8 and go back to 7.3.1, I filed a radar, saw other people with the same problem on the dev forums.

这篇关于导航栏宽度的Xcode 8故事板警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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