Instance Method


Adds the specified layout guide to the view.


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



The layout guide to be added.


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


The array of layout guide objects owned by this view.


A layout guide representing the view’s margins.


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