Swift 2.0 项目中利用中自定义行高 时遇到的问题?
2015-08-14 14:02
429 查看
swift2.0 项目中遇到的问题, 在计算cell行高的时候运用了自动计算行高的方法, 如果换成直接指定行高就不会有这样的打印。
Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSLayoutConstraint:0x7fe51d969800 V:|-(0)-[WeiQianWeiBo.statuseTopView:0x7fe51d962700] (Names: '|':UITableViewCellContentView:0x7fe51d90a1c0 )>",
"<NSLayoutConstraint:0x7fe51d969a70 V:[WeiQianWeiBo.statuseTopView:0x7fe51d962700(53)]>",
"<NSLayoutConstraint:0x7fe51d96c120 V:[WeiQianWeiBo.statuseTopView:0x7fe51d962700]-(8)-[UILabel:0x7fe51b5d6f60'All together ... Me and a...']>",
"<NSLayoutConstraint:0x7fe51d96d660 V:[UILabel:0x7fe51b5d6f60'All together ... Me and a...']-(8)-[WeiQianWeiBo.StatusPictureView:0x7fe51b88fc00]>",
"<NSLayoutConstraint:0x7fe51d96d730 V:[WeiQianWeiBo.StatusPictureView:0x7fe51b88fc00(120)]>",
"<NSLayoutConstraint:0x7fe51d96dc80 V:[WeiQianWeiBo.StatusPictureView:0x7fe51b88fc00]-(8)-[WeiQianWeiBo.StatusBotttomView:0x7fe51b5e8eb0]>",
"<NSLayoutConstraint:0x7fe51d96dd20 V:[WeiQianWeiBo.StatusBotttomView:0x7fe51b5e8eb0(44)]>",
"<NSLayoutConstraint:0x7fe51d96cc40 WeiQianWeiBo.StatusBotttomView:0x7fe51b5e8eb0.bottom == UITableViewCellContentView:0x7fe51d90a1c0.bottom>",
"<NSLayoutConstraint:0x7fe51d96ee20 'UIView-Encapsulated-Layout-Height' V:[UITableViewCellContentView:0x7fe51d90a1c0(175)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7fe51d96dc80 V:[WeiQianWeiBo.StatusPictureView:0x7fe51b88fc00]-(8)-[WeiQianWeiBo.StatusBotttomView:0x7fe51b5e8eb0]>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
这个问题不报错, 只是在程序运行那个的时候在控制台打印的,还没有找到好的解决方法。如果有人知道,求指教!
Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSLayoutConstraint:0x7fe51d969800 V:|-(0)-[WeiQianWeiBo.statuseTopView:0x7fe51d962700] (Names: '|':UITableViewCellContentView:0x7fe51d90a1c0 )>",
"<NSLayoutConstraint:0x7fe51d969a70 V:[WeiQianWeiBo.statuseTopView:0x7fe51d962700(53)]>",
"<NSLayoutConstraint:0x7fe51d96c120 V:[WeiQianWeiBo.statuseTopView:0x7fe51d962700]-(8)-[UILabel:0x7fe51b5d6f60'All together ... Me and a...']>",
"<NSLayoutConstraint:0x7fe51d96d660 V:[UILabel:0x7fe51b5d6f60'All together ... Me and a...']-(8)-[WeiQianWeiBo.StatusPictureView:0x7fe51b88fc00]>",
"<NSLayoutConstraint:0x7fe51d96d730 V:[WeiQianWeiBo.StatusPictureView:0x7fe51b88fc00(120)]>",
"<NSLayoutConstraint:0x7fe51d96dc80 V:[WeiQianWeiBo.StatusPictureView:0x7fe51b88fc00]-(8)-[WeiQianWeiBo.StatusBotttomView:0x7fe51b5e8eb0]>",
"<NSLayoutConstraint:0x7fe51d96dd20 V:[WeiQianWeiBo.StatusBotttomView:0x7fe51b5e8eb0(44)]>",
"<NSLayoutConstraint:0x7fe51d96cc40 WeiQianWeiBo.StatusBotttomView:0x7fe51b5e8eb0.bottom == UITableViewCellContentView:0x7fe51d90a1c0.bottom>",
"<NSLayoutConstraint:0x7fe51d96ee20 'UIView-Encapsulated-Layout-Height' V:[UITableViewCellContentView:0x7fe51d90a1c0(175)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7fe51d96dc80 V:[WeiQianWeiBo.StatusPictureView:0x7fe51b88fc00]-(8)-[WeiQianWeiBo.StatusBotttomView:0x7fe51b5e8eb0]>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
这个问题不报错, 只是在程序运行那个的时候在控制台打印的,还没有找到好的解决方法。如果有人知道,求指教!
相关文章推荐
- Apple Swift学习教程
- 用vbs确定计算机是否有 USB 2.0 端口的代码
- asp.net 2.0 中的URL重写以及urlMappings问题
- Downplus 2.0关于使用迅雷快车链接的说明
- ASP.NET 2.0 URL映射技巧
- ASP.NET 2.0 URL映射技巧
- DotNet2.0 生成网站的测试
- asp.net 1.1/ 2.0 中快速实现单点登陆
- 解密FCKeditor 2.0 的设置.修改.使用方法
- Swift中实现点击、双击、捏、旋转、拖动、划动、长按手势的类和方法介绍
- Swift中定义二维数组的方法及遍历方法示例
- THINKPHP2.0到3.0有哪些改进之处
- 简单分析Swift语言的一些基本特征
- Swift与C语言指针结合使用实例
- Swift心得笔记之控制流
- OAuth 2.0授权协议详解
- 用Swift构建一个简单的iOS邮件应用的方法
- 苹果公司推出的新编程语言Swift简介和入门教程
- win2003 sp2+iis 6.0上部署.net 2.0和.net 4.0网站的方法