YouWen[1025:5332657] [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:0x600002c54190 UIButton:0x7fcefc476170'\U767b\U5f55'.height == 46 (active)>",
"<NSLayoutConstraint:0x600002c54500 V:|-(0)-[UIButton:0x7fcefc476170'\U767b\U5f55'] (active, names: '|':UITableViewCellContentView:0x7fcefc475fe0 )>",
"<NSLayoutConstraint:0x600002c54550 V:[UIButton:0x7fcefc476170'\U767b\U5f55']-(0)-| (active, names: '|':UITableViewCellContentView:0x7fcefc475fe0 )>",
"<NSLayoutConstraint:0x600002c49770 'UIView-Encapsulated-Layout-Height' UITableViewCellContentView:0x7fcefc475fe0.height == 46.3333 (active)>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x600002c54190 UIButton:0x7fcefc476170'登录'.height == 46 (active)>
cell的subview固定高度自适应,回报多出.333错误
去掉分界线,警告消除
方法一,self.tableView?.separatorStyle = .none
方法二,限制高度heigth>=46
网友评论