Removing a constraint
I couldn't find any way to remove a constraint :p Is it even possible ?
No, I don't have methods for this and there is not any way to access them. You will have to create the constraint “manually” or search for specific constraint in the constraints property of given view.
Awww too bad ! thanks anyway :)
I will improve whole concept of this KeepLayout in next major version. Modifying and removing constrains will be possible.
it's gonna be awesome then :p ! Because that's really something that's missing !
Has this been added to KeepLayout?
Yes, of course. Just call -deactivate on any attribute like this:
// This creates 3 layout constraints:
view.keepWidth.equal = 150 +keepLow;
view.keepWidth.min = 100;
view.keepWidth.max = 200;
// This modifies existing constraint (created above):
view.keepWidth.min = 110;
// This removes all 3 layout constraints:
[view.keepWidth deactivate];