Instance Property

constant

The constant added to the multiplied second attribute participating in the constraint.

Declaration

@property CGFloat constant;

Discussion

Unlike the other properties, the constant can be modified after constraint creation. Setting the constant on an existing constraint performs much better than removing the constraint and adding a new one that's exactly like the old except that it has a different constant.

See Also

Accessing Constraint Data

firstItem

The first object participating in the constraint.

firstAttribute

The attribute of the first object participating in the constraint.

relation

The relation between the two attributes in the constraint.

secondItem

The second object participating in the constraint.

secondAttribute

The attribute of the second object participating in the constraint.

multiplier

The multiplier applied to the second attribute participating in the constraint.

firstAnchor

The first anchor that defines the constraint.

secondAnchor

The second anchor that defines the constraint.