Instance Method

addLayoutGuide:

Adds the specified layout guide to the view.

Declaration

- (void)addLayoutGuide:(UILayoutGuide *)layoutGuide;

Parameters

layoutGuide

The layout guide to be added.

Discussion

This method adds the specified layout guide to the end of the view’s layoutGuides array. It also assigns the view to the guide’s owningView property. Each guide can have only one owning view.

After the guide has been added to a view, it can participate in Auto Layout constraints with that view’s hierarchy.

See Also

Working with Layout Guides

layoutGuides

The array of layout guide objects owned by this view.

layoutMarginsGuide

A layout guide representing the view’s margins.

readableContentGuide

A layout guide representing an area with a readable width within the view.

- removeLayoutGuide:

Removes the specified layout guide from the view.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software