Creates a new constraint between two views.
The first item to constrain
The attribute of the first item to constrain
The relation between the two attributes
The second item to constrain to
The attribute of the second item to constrain to
The multiplier to apply to the second attribute
The constant to add to the second attribute
The constant to add to the second attribute.
The attribute of the first item to use.
The first item to constrain.
The multiplier to apply to the second attribute.
The priority of the constraint.
The relation between the two attributes.
The attribute of the second item to use.
The second item to constrain to.
The CCLayoutConstraint class defines a rule that constrains a value of one view's geometry to another view, following a linear equation. Use constraints to make a UI that automatically handles resizing.