ios - Activating a constraint which was uninstalled in the storyboard -


i have view contains few constraints. of them have installed checkbox turned off. trying activate , deactivate specific constraints depending on state of application.

the problem when installed checkbox turned off can't activate constraints , can't deactivate installed constraints. need mention use strong references constraints in size classes properties. tried approach call setneedsupdateconstraints , updateconstraintsifneeded, setneedslayout , layoutifneeded, after activating/deactivating constraints.

i couldn't find documentation regarding behavior why happening?

be sure put code in right place

override func viewdidlayoutsubviews() { // write code here  } 

Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

android - IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling -