Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0
来源:互联网 发布:域名信息备案管理系统 编辑:程序博客网 时间:2024/04/28 15:31
在Xcode6下开发时,使用autolayout的xib出现警告:Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0
原因:xcode6下默认开启自动设置UILabel的preferredMaxLayoutWidth 的属性,而自动的特性只支持iOS8,故导致这个警告,如果想兼容iOS7则需要消除。
解决方法:设置固定的preferredMaxLayoutWidth (勾选Explicit(其中如果label不是多行就不用勾选了,因为无效)如果只想支持iOS8就不要勾选了,动态的更加方便),如下图,并在代码中实时修改此属性(注:此属性只对多行的UILabel有效,即lines不为1,如果是1行的不需要修改)。
参考:http://stackoverflow.com/questions/25398312/automatic-preferred-max-layout-width-is-not-available-on-ios-versions-prior-to-8
0 0
- Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0
- Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0
- Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0
- [Xcode] Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0
- Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0
- Automatic Preferred Max Layout Width is not available on iOS versions prior to
- iOS自动布局解决警告Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0
- iOS自动布局解决警告Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0
- [xcode-warning]Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0
- XCode自动布局Warning: Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0
- Attribute Unavailable: Automatic Preferred Max Layout Width is not available on iOS versions prior t
- Attribute Unavailable: Automatic Preferred Max Layout Width is not available on iOS versions prior t
- Attribute Unavailable: Automatic Preferred Max Layout Width is not available on iOS versions prior t
- 警告:Attribute Unavailable Automatic Preferred Max Layout Width is not available on iOS versions pri
- Automatic Preferred Max Layout Width is not available on
- warning: Automatic Preferred Max Layout Width before iOS 8.0
- Automatic Preferred Max Layout Width before iOS 8.0解决办法
- iOS自动布局解决警告Automatic Preferred Max Layout Width before iOS 8.0
- HDU 1754 I Hate It(单点更新)
- BC-33 hdu 5186
- Android项目源码:项目源码收集
- uva-10474
- Android 2.3 代码混淆proguard技术介绍
- Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0
- 计算机专业该不该考研
- NYOJ 60 谁获得了最高奖学金
- 顺序栈
- Trie树 poj3630
- 头文件定义全局变量
- Java设计模式——合成模式(Composite)
- 搜索引擎的效果图
- MyFirstDemo