7

I have a UICollectionViewCell subclass. I wrote an updateConstraints method as I've done a hundred times before. For some reason that is never called when the cell is dequeued. I had to add a manual call to [cell setNeedsUpdateConstraints] after dequeueing it.

Any idea what could be going on here?

1 Answer 1

18

Implement this method and return YES. This could probably help.

+ (BOOL)requiresConstraintBasedLayout 

For details:

https://stackoverflow.com/a/23616469/1300262

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.