Does UICollectionViewCell not automatically cause updateConstraints when uninstalling?

I have a subclass of UICollectionViewCell. I wrote the updateConstraints method, as I did a hundred times. For some reason, this is never called when a cell is overloaded. I had to add a manual call to [cell setNeedsUpdateConstraints] after deleting it.

Any idea what can be done here?

+6
source share
1 answer

Add this method and return YES. Perhaps this will help.

 + (BOOL)requiresConstraintBasedLayout 

More details:

fooobar.com/questions/967827 / ...

+15
source

All Articles