iOSView.Constraint

From Xojo Documentation

Method

iOSView.Constraint(name As Text) As iOSLayoutConstraint

Supported on Mobile(iOS).

Gets a reference to a named constraint so that you can modify its settings in code.

Sample Code

Change an existing (and named) constraint of a control on the View:

// "TAWidth" is a width constraint for a TextField that has been given
// a name in the auto-layout Inspector properties.
Var c As iOSLayoutConstraint = Self.Constraint("TAWidth")
c.Offset = 200