Automatic Preferred Max Layout Width is not available on
来源:互联网 发布:大陆台湾网络骂战 编辑:程序博客网 时间:2024/03/28 19:04
在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
- 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
- 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
- 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
- 警告:Attribute Unavailable Automatic Preferred Max Layout Width is not available on iOS versions pri
- [xcode-warning]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
- iOS自动布局解决警告Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0
- automatic preferred max layout width警告
- Automatic Preferred Max Layout Width before iOS8.0 解决探索
- 警告:Automatic Preferred Max Layout Width before iOS8.0
- Android启动默认是横屏或者竖屏
- UVA OJ Bicoloring 10004
- mms 数据包相关 抓包
- malloc/free
- ios8数字键盘添加完成
- Automatic Preferred Max Layout Width is not available on
- 英语四六级考试网(个人测试)
- HTTP请求辅助类
- oracle表空间详解--原理
- 程序员的核心竞争力:什么是能力?这就是能力
- 电子商务网站的设计与实现(二):一期功能清单
- 中国矿业大学学生在线入围第七届全国高校百佳网站——获得“最佳技术应用奖”
- 解决jsp重复提交问题
- [LeetCode] Sudoku Solver