“导航栏”的Xcode 8帧在运行时错误时会有所不同

时间:2016-10-27 07:38:08

标签: ios swift xcode xcode8

安装Xcode 8后,我在每个Navigation Bar的项目中收到此错误:

/Users/Amir_P/Desktop/example/ios/example/example/Base.lproj/Main.storyboard Frame for "Navigation Bar" will be different at run time.

我尝试更新帧,更新约束但没有任何反应。我该如何解决? enter image description here

enter image description here

2 个答案:

答案 0 :(得分:1)

就我而言,将故事板6尺寸的设备更改为iPhone SE对我有用

在xcode 7.3.1我的故事板中所有viewController大小都是4英寸iphone设备(320x568)

enter image description here

答案 1 :(得分:0)

Warning will disappear if you change the property "Simulated Size" to "Freeform".

enter image description here