cell 的 容器视图 很重要:

cell 的 容器视图 很重要.

没有容器视图,
用 model 自定义属性, 设置 cell 高度。
报错如下。



2016-12-26 15:19:48.533 TheStep[30493:1329078] 
--------------------------- JPush Log ----------------------------
--------------------JPush SDK Version:3.0.0--build:13----------
--------------------JCore Lib Version:1.0.0------------
-----------------AppKey:72bbf5b21080a540b02992ef----------------
----------------------------------------------------------------
2016-12-26 15:19:48.534 TheStep[30493:1329078] JPush WARNING! APNs is NOT supported on simulator
2016-12-26 15:19:48.819133 TheStep[30493:1329078] [LayoutConstraints] 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. 
(
    "<NSLayoutConstraint:0x60000028a960 UILabel:0x7f829f43f040.height == 20>",
    "<NSLayoutConstraint:0x60000028ac80 UIImageView:0x7f829f43fa50.height == 130>",
    "<NSLayoutConstraint:0x60000028adc0 UILabel:0x7f829f43fc30.height == 20>",
    "<NSLayoutConstraint:0x60000028aff0 UIView:0x7f829f43eea0.top == UITableViewCellContentView:0x7f829f43ecf0.top + 20>",
    "<NSLayoutConstraint:0x60000028b090 UILabel:0x7f829f43f040.top == UIView:0x7f829f43eea0.top>",
    "<NSLayoutConstraint:0x60000028b130 UIImageView:0x7f829f43fa50.top == UILabel:0x7f829f43f040.bottom + 10>",
    "<NSLayoutConstraint:0x60000028b220 UILabel:0x7f829f43fc30.top == UIImageView:0x7f829f43fa50.bottom + 10>",
    "<NSLayoutConstraint:0x60000028b2c0 UITableViewCellContentView:0x7f829f43ecf0.bottom == UIView:0x7f829f440330.bottom>",
    "<NSLayoutConstraint:0x60000028b360 UIView:0x7f829f440330.top == UILabel:0x7f829f43fc30.bottom>",
    "<NSLayoutConstraint:0x60800009b4e0 UITableViewCellContentView:0x7f829f43ecf0.height == 45>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x60000028ac80 UIImageView:0x7f829f43fa50.height == 130>

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.
2016-12-26 15:19:48.820596 TheStep[30493:1329078] [LayoutConstraints] 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. 
(
    "<NSLayoutConstraint:0x60000028a960 UILabel:0x7f829f43f040.height == 20>",
    "<NSLayoutConstraint:0x60000028adc0 UILabel:0x7f829f43fc30.height == 20>",
    "<NSLayoutConstraint:0x60000028aff0 UIView:0x7f829f43eea0.top == UITableViewCellContentView:0x7f829f43ecf0.top + 20>",
    "<NSLayoutConstraint:0x60000028b090 UILabel:0x7f829f43f040.top == UIView:0x7f829f43eea0.top>",
    "<NSLayoutConstraint:0x60000028b130 UIImageView:0x7f829f43fa50.top == UILabel:0x7f829f43f040.bottom + 10>",
    "<NSLayoutConstraint:0x60000028b220 UILabel:0x7f829f43fc30.top == UIImageView:0x7f829f43fa50.bottom + 10>",
    "<NSLayoutConstraint:0x60000028b2c0 UITableViewCellContentView:0x7f829f43ecf0.bottom == UIView:0x7f829f440330.bottom>",
    "<NSLayoutConstraint:0x60000028b360 UIView:0x7f829f440330.top == UILabel:0x7f829f43fc30.bottom>",
    "<NSLayoutConstraint:0x60800009b4e0 UITableViewCellContentView:0x7f829f43ecf0.height == 45>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x60000028adc0 UILabel:0x7f829f43fc30.height == 20>

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.
2016-12-26 15:19:48.821588 TheStep[30493:1329078] [LayoutConstraints] 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. 
(
    "<NSLayoutConstraint:0x60000028a960 UILabel:0x7f829f43f040.height == 20>",
    "<NSLayoutConstraint:0x60000028aff0 UIView:0x7f829f43eea0.top == UITableViewCellContentView:0x7f829f43ecf0.top + 20>",
    "<NSLayoutConstraint:0x60000028b090 UILabel:0x7f829f43f040.top == UIView:0x7f829f43eea0.top>",
    "<NSLayoutConstraint:0x60000028b130 UIImageView:0x7f829f43fa50.top == UILabel:0x7f829f43f040.bottom + 10>",
    "<NSLayoutConstraint:0x60000028b220 UILabel:0x7f829f43fc30.top == UIImageView:0x7f829f43fa50.bottom + 10>",
    "<NSLayoutConstraint:0x60000028b2c0 UITableViewCellContentView:0x7f829f43ecf0.bottom == UIView:0x7f829f440330.bottom>",
    "<NSLayoutConstraint:0x60000028b360 UIView:0x7f829f440330.top == UILabel:0x7f829f43fc30.bottom>",
    "<NSLayoutConstraint:0x60800009b4e0 UITableViewCellContentView:0x7f829f43ecf0.height == 45>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x60000028a960 UILabel:0x7f829f43f040.height == 20>

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.
2016-12-26 15:19:48.888318 TheStep[30493:1329078] [LayoutConstraints] 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. 
(
    "<NSLayoutConstraint:0x60800028ffa0 UILabel:0x7f829f64ca90.height == 20>",
    "<NSLayoutConstraint:0x6080002901d0 UIImageView:0x7f829f64cfe0.height == 130>",
    "<NSLayoutConstraint:0x6080002902c0 UILabel:0x7f829f64d360.height == 20>",
    "<NSLayoutConstraint:0x6080002904f0 UIView:0x7f829f64bed0.top == UITableViewCellContentView:0x7f829f64c8e0.top + 20>",
    "<NSLayoutConstraint:0x608000290590 UILabel:0x7f829f64ca90.top == UIView:0x7f829f64bed0.top>",
    "<NSLayoutConstraint:0x608000290630 UIImageView:0x7f829f64cfe0.top == UILabel:0x7f829f64ca90.bottom + 10>",
    "<NSLayoutConstraint:0x608000290720 UILabel:0x7f829f64d360.top == UIImageView:0x7f829f64cfe0.bottom + 10>",
    "<NSLayoutConstraint:0x6080002907c0 UITableViewCellContentView:0x7f829f64c8e0.bottom == UIView:0x7f829f64d1c0.bottom>",
    "<NSLayoutConstraint:0x608000290860 UIView:0x7f829f64d1c0.top == UILabel:0x7f829f64d360.bottom>",
    "<NSLayoutConstraint:0x608000291e40 UITableViewCellContentView:0x7f829f64c8e0.height == 45>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x6080002901d0 UIImageView:0x7f829f64cfe0.height == 130>

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.
2016-12-26 15:19:48.891246 TheStep[30493:1329078] [LayoutConstraints] 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. 
(
    "<NSLayoutConstraint:0x60800028ffa0 UILabel:0x7f829f64ca90.height == 20>",
    "<NSLayoutConstraint:0x6080002902c0 UILabel:0x7f829f64d360.height == 20>",
    "<NSLayoutConstraint:0x6080002904f0 UIView:0x7f829f64bed0.top == UITableViewCellContentView:0x7f829f64c8e0.top + 20>",
    "<NSLayoutConstraint:0x608000290590 UILabel:0x7f829f64ca90.top == UIView:0x7f829f64bed0.top>",
    "<NSLayoutConstraint:0x608000290630 UIImageView:0x7f829f64cfe0.top == UILabel:0x7f829f64ca90.bottom + 10>",
    "<NSLayoutConstraint:0x608000290720 UILabel:0x7f829f64d360.top == UIImageView:0x7f829f64cfe0.bottom + 10>",
    "<NSLayoutConstraint:0x6080002907c0 UITableViewCellContentView:0x7f829f64c8e0.bottom == UIView:0x7f829f64d1c0.bottom>",
    "<NSLayoutConstraint:0x608000290860 UIView:0x7f829f64d1c0.top == UILabel:0x7f829f64d360.bottom>",
    "<NSLayoutConstraint:0x608000291e40 UITableViewCellContentView:0x7f829f64c8e0.height == 45>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x6080002902c0 UILabel:0x7f829f64d360.height == 20>

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.
2016-12-26 15:19:48.896127 TheStep[30493:1329078] [LayoutConstraints] 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. 
(
    "<NSLayoutConstraint:0x60800028ffa0 UILabel:0x7f829f64ca90.height == 20>",
    "<NSLayoutConstraint:0x6080002904f0 UIView:0x7f829f64bed0.top == UITableViewCellContentView:0x7f829f64c8e0.top + 20>",
    "<NSLayoutConstraint:0x608000290590 UILabel:0x7f829f64ca90.top == UIView:0x7f829f64bed0.top>",
    "<NSLayoutConstraint:0x608000290630 UIImageView:0x7f829f64cfe0.top == UILabel:0x7f829f64ca90.bottom + 10>",
    "<NSLayoutConstraint:0x608000290720 UILabel:0x7f829f64d360.top == UIImageView:0x7f829f64cfe0.bottom + 10>",
    "<NSLayoutConstraint:0x6080002907c0 UITableViewCellContentView:0x7f829f64c8e0.bottom == UIView:0x7f829f64d1c0.bottom>",
    "<NSLayoutConstraint:0x608000290860 UIView:0x7f829f64d1c0.top == UILabel:0x7f829f64d360.bottom>",
    "<NSLayoutConstraint:0x608000291e40 UITableViewCellContentView:0x7f829f64c8e0.height == 45>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x60800028ffa0 UILabel:0x7f829f64ca90.height == 20>

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.
2016-12-26 15:20:59.164 TheStep[30493:1329078] The request timed out.


最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容