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

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -