First of all this ain\'t about dynamic cell\'s height. So don\'t mix it up.
I have a scenario in that I created three cards
I did not see any error in your constraints setup.
You may see this UITemporaryLayoutHeight constraint because you added the contentSize observer ([self.tableView addObserver:self forKeyPath:@"contentSize" options:0 context:NULL]
) too soon in your view life cycle, which triggers a [self.tableView layoutIfNeeded]
.
Try to add the observer in the viewDidLoad
, remove it in dealloc
of your View Controller ; Or in your viewWillAppear
, and remove it in the viewWillDisappear
for exemple.