Attribute Unavailable: Automatic Preferred Max Layout Width is not available on iOS versions prior t
来源:互联网 发布:淘宝网订单 编辑:程序博客网 时间:2024/04/28 08:33
在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
转自:http://blog.sina.com.cn/s/blog_5fde60890102v3wj.html
1 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 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
- Automatic Preferred Max Layout Width is not available on
- Attribute Unavailable: First baseline layout attribute on iOS versions prior to 8.0
- Attribute Unavailable: First baseline layout attribute on iOS versions prior to 8.0
- warning: Automatic Preferred Max Layout Width before iOS 8.0
- lua环境的配置以及c++调用lua的简单例子
- UIKit框架-高级控件Swift版本: 3.UITableViewCell方法/属性详解
- Linux下文件和目录管理汇总
- android通过wifi控制PC
- Redis源码解析(四):redis之数据类型哈希表、列表、集合和有序集合
- Attribute Unavailable: Automatic Preferred Max Layout Width is not available on iOS versions prior t
- android的PackageManagerService详解
- NMock学习系列(三)--- NMock在DDD领域驱动的单元测试中的应用
- 输入三位数输出倒序数(取余取整)
- 双程动态规划 nyoj61
- Struts1.x系列教程(4):标签库概述与安装
- 初来乍到,多多关照!
- 最长回文子串问题
- Hibernate学习笔记(三)深入理解持久化对象