ios - Is overriding of constraints() and removeConstraints() necessary when creating a custom control? -
i'm creating custom control uses auto-layout arrange subviews.
naturally, don't want users of custom control inadvertently mess these internal constraints when programmatically manipulating control's constraints thought should override constraints()
hide internal ones user should never need know , removeconstraints()
prevent user removing them.
but occurred me uikit
invokes constraints()
and/or removeconstraints()
, expects able see of them.
so, should or should not, override constraints()
, removeconstraints()
?
Comments
Post a Comment