简体   繁体   English

属性不可用:8.0之前的iOS版本的第一个基线布局属性

[英]Attribute Unavailable: First baseline layout attribute on iOS versions prior to 8.0

I'm getting the following warning in XCode 6.1 . 我在XCode 6.1中收到以下警告

Attribute Unavailable: First baseline layout attribute on iOS versions prior to 8.0 属性不可用:8.0之前的iOS版本的第一个基线布局属性

I think, this is also causing my iOS 7.x builds to crash . 我想,这也导致我的iOS 7.x版本崩溃

Found the issue. 发现了这个问题。 This new constraint was added to iOS 8.0 and isn't supported with previous versions. 此新约束已添加到iOS 8.0,以前的版本不支持。

To get rid of this warning and allow iOS 7 builds to work you need to: 要摆脱此警告并允许iOS 7版本工作,您需要:
1. Click on the warning in the side bar (this should highlight the offending constraint) 1.单击侧栏中的警告(这应突出显示有问题的约束)
2. Change that constraint to something other than "First Baseline". 2.将该约束更改为“First Baseline”以外的其他约束。 "Center Y" worked well for me. “Y中心”对我很有用。 You'll have to play with the options and can see the changes live to see which alternative works for you. 您必须使用这些选项并可以查看更改,以查看哪种替代方案适合您。

iOS 7 now builds again and warning is gone. iOS 7现在再次构建,警告消失了。

在此输入图像描述

We just ran into this exact same problem, but in our case, it didn't crash Xcode; 我们遇到了这个完全相同的问题,但在我们的例子中,它没有崩溃Xcode; it just drew the the view wildly out of place when run on an iOS 7 simulator. 它只是在iOS 7模拟器上运行时将视图粗略地绘制出来。 We fixed it by changing the constraint's item to plain ol' baseline . 我们通过将约束项改为普通ol' baseline来修复它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 8.0之前的iOS版本上的属性不可用警告 - Attribute Unavailable warning on iOS versions prior to 8.0 故事板警告:iOS 8.0之前的第一个基线布局属性 - Storyboard warning : First baseline layout attribute before iOS 8.0 警告:属性不可用:6.0之前的iOS版本上的最小字体比例 - warning: Attribute Unavailable: Minimum Font Scale on iOS versions prior to 6.0 相对于8.0之前的iOS版本上的布局边距的布局属性 - Layout attributes relative to the layout margin on iOS versions prior to 8.0 警告:属性不可用:适用于iOS 3.0之前版本的iPhone SDK中的Content Edge Inset - Warning: Attribute Unavailable: Content Edge Inset in iPhone SDK for iOS versions prior to 3.0 自动首选最大布局宽度在8.0之前的iOS版本上不可用 - Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0 禁止在8.0之前的iOS版本上使用“自动首选最大布局宽度”警告 - Inhibit `Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0` warnings iOS 7.0之前的属性不可用自动启用返回键 - Attribute Unavailable Auto-enable Return Key prior ot iOS 7.0 类不可用。 在6.0之前的iOS版本上无法使用取消同步功能 - Class Unavailable. Unwind segues are not available on iOS versions prior to 6.0 将应用程序升级到iOS 7 - 错误“iOS版本6.0之前的自动布局”(但希望iOS 7不旧) - Upgraded app to iOS 7 - error “Auto Layout on iOS Versions prior to 6.0” (but want iOS 7 not older)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM