Protocol

UILayoutSupport

This protocol is implemented by the UIViewController properties topLayoutGuide and bottomLayoutGuide to support using Auto Layout with a view controller’s view, starting in iOS 7. You can use layout guides as layout items in the NSLayoutConstraint factory methods.

Symbols

Layout Support

var length: CGFloat
Required.

Provides the length, in points, of the portion of a view controller’s view that is overlaid by translucent or transparent UIKit bars.

Creating Constraints Using Layout Anchors

var bottomAnchor: NSLayoutYAxisAnchor
Required.

A layout anchor representing the guide’s bottom edge.

var heightAnchor: NSLayoutDimension
Required.

A layout anchor representing the guide’s height.

var topAnchor: NSLayoutYAxisAnchor
Required.

A layout anchor representing the guide’s top edge.

Relationships

Inherits From