I created a strong
constraint for a UILabel
in a .xib
file and an outlet for it.
In my code, I set self.constraint.active = NO
, but after the application loads, when I open the Debug View Hierarchy
, the same constraint is active.
I tried setting it in viewDidLoad
, updateViewConstraints
and viewDidLayoutSubviews
to no avail.
I also created a NSLayoutConstraint
subclass, overwrote the setActive:
method and put a breakpoint in it, but only my code triggered it.