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

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -