Skip to content

iOS tableViewCell确保约束没问题后,还是报约束冲突的问题 #82

Open

Description

@resse92

加了estimateRowHeight和rowHeight = UITableViewAutomaticDimension,以及tableViewCell确定没有约束问题后,运行后,页面显示正确,可是报约束冲突的错误,其中有一个约束是

UITableViewCellContentView:0x7f8bcc716480.height == 44

换了多个方法:

  1. estimateRowHeight尽量和实际的接近,解决不了
  2. 设置cell的cell.contentView.autoresizingMask = .flexibleHeight,不行
  3. cell里面约束最顶部和最底部的约束优先级变最高,解决!

Activity

  1. changed the title [-]d[/-] [+]iOS tableViewCell确保约束没问题后,还是报约束冲突的问题[/+] on Jun 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions