How do I destroy an NSLayoutConstraint object that I no longer use?

An NSLayoutConstraint object can exist without there being a variable reference to it. How do I destroy it when I no longer use it?

Hi @brower

If i understood you correctly - you need set the property isActive to false and set a variable that stores a reference to a constraint to nil. Let me know if you have additional questions or this is doesn’t answer your question.
Anyway I hope this is helpful.

Nikita

1 Like

This topic was automatically closed after 166 days. New replies are no longer allowed.