Returns a constraint that defines the anchor’s size attribute as equal to the specified size attribute multiplied by a constant plus an offset.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
The multiplier constant for the constraint.
The offset constant for this relationship.
NSLayout object that defines the attribute represented by this layout anchor as equal to the attribute represented by the
anchor parameter multiplied by the
m constant plus the constant
This method defines the relationship
first attribute = (m * second attribute) + c. Where
first attribute is the layout attribute represented by the anchor receiving this method call, and
second attribute is the layout attribute represented by the
The constraints produced by the following two examples are identical.