public class UILayoutGuide extends NSObject
Constructor and Description |
---|
UILayoutGuide()
The default constructor of the layout guide.
|
Modifier and Type | Method and Description |
---|---|
NSLayoutYAxisAnchor |
bottomAnchor()
Returns the layout anchor for the bottom edge.
|
NSLayoutXAxisAnchor |
centerXAnchor()
Returns the layout anchor for horizontal center.
|
NSLayoutYAxisAnchor |
centerYAnchor()
Returns the layout anchor for vertical center.
|
NSLayoutDimension |
heightAnchor()
Returns the layout anchor for the height.
|
String |
identifier()
Returns the String id of this layout guide.
|
CGRect |
layoutFrame()
The frame of this layout guide expressed in the coordinate system of the
view that own it.
|
NSLayoutXAxisAnchor |
leadingAnchor()
Returns the layout anchor for the leading edge.
|
NSLayoutXAxisAnchor |
leftAnchor()
Returns the layout anchor for the left edge.
|
UIView |
owningView()
Returns the view of this layout guide.
|
NSLayoutXAxisAnchor |
rightAnchor()
Returns the layout anchor for the right edge.
|
void |
setIdentifier(String identifier)
Sets a String id for this layout guide.
|
void |
setOwningView(UIView owningView)
Set the view parameter as the owner of this layout guide.
|
NSLayoutYAxisAnchor |
topAnchor()
Returns the layout anchor for the top edge.
|
String |
toString() |
NSLayoutXAxisAnchor |
trailingAnchor()
Returns the layout anchor for the trailing edge.
|
NSLayoutDimension |
widthAnchor()
Returns the layout anchor for the width
|
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public UILayoutGuide()
public String identifier()
public void setIdentifier(String identifier)
identifier
- The String id for this layout guide.public CGRect layoutFrame()
public UIView owningView()
public void setOwningView(UIView owningView)
owningView
- The view that owns this this layout guide.public NSLayoutYAxisAnchor bottomAnchor()
public NSLayoutXAxisAnchor centerXAnchor()
public NSLayoutYAxisAnchor centerYAnchor()
public NSLayoutDimension heightAnchor()
public NSLayoutXAxisAnchor leadingAnchor()
public NSLayoutXAxisAnchor leftAnchor()
public NSLayoutXAxisAnchor rightAnchor()
public NSLayoutYAxisAnchor topAnchor()
public NSLayoutXAxisAnchor trailingAnchor()
public NSLayoutDimension widthAnchor()
Copyright © 2020. All rights reserved.