[warning]Attribute Unavailable: Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0

开发支持iOS 7版本时候选了autolayout,结果在storyboard出现了如下警告:
[objc]
Attribute Unavailable:
Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0
[/objc]
QQ20150820-1

主要原因:
设置了lable的lines,默认为1,我将其改为0.
【关于警告提示:preferredMaxLayoutWidth 的属性,只支持iOS8】
QQ20150820-2

解决方法:
直接设置固定的preferred Width,勾选Explicit就行了
QQ20150820-3

76 thoughts on “[warning]Attribute Unavailable: Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0

Ckloar进行回复 取消回复

电子邮件地址不会被公开。