public class UIView extends UIResponder implements UIAccessibilityIdentification, UIAppearance, UIAppearanceContainer
Modifier and Type | Field and Description |
---|---|
static double |
NoIntrinsicMetric |
Constructor and Description |
---|
UIView()
Constructs a default UIWindow object located at (0,0) with 0 weight and 0
height.
|
UIView(CGRect frame)
Initializes and returns a newly allocated view object with the specified
frame rectangle.
|
Modifier and Type | Method and Description |
---|---|
String |
accessibilityIdentifier()
Retrieve the assigned ID of this instance
|
void |
addConstraint(NSLayoutConstraint constraint)
Adds the specified constraint to this view.
|
void |
addConstraints(List<NSLayoutConstraint> constraints)
Adds the specified list of constraints to this view.
|
void |
addGestureRecognizer(UIGestureRecognizer gesture)
Connects a gesture recognizer to this view.
|
void |
addLayoutGuide(UILayoutGuide layoutGuide)
Adds the specified layout guide to this view.
|
void |
addSubview(UIView subView)
Add the subview defined as parameter at this view's list of subviews.
|
double |
alpha()
Returns this view’s alpha value.
|
static void |
animateWithDuration(double duration,
double delay,
int UIViewAnimationOptions,
Runnable animations,
org.robovm.objc.block.VoidBlock1<Boolean> completion)
Animates changes between views using the specified options.
|
static void |
animateWithDuration(double duration,
Runnable animations)
Animates changes between views using the specified duration.
|
static void |
animateWithDuration(double duration,
Runnable animations,
org.robovm.objc.block.VoidBlock1<Boolean> completion) |
static boolean |
areAnimationsEnabled()
Returns a Boolean that shows whether the animations are enabled.
|
boolean |
autoresizesSubviews()
Returns a Boolean that defines if this view after a change on its size
automatically changes the size of its subviews.
|
int |
autoresizingMask()
Returns an integer bit bask that defines the way this view changes its
size on a superview size change.
|
UIColor |
backgroundColor()
Returns this view's background color.
|
NSLayoutYAxisAnchor |
bottomAnchor()
Returns the bottom edge of the layout guide frame expressed as layout
anchor.
|
CGRect |
bounds()
Returns the bounds of this view in its own coordinate system expressed
using CGRect structure.
|
void |
bringSubviewToFront(UIView subView)
Moves the subview defined as parameter in front of the other subviews of
this view.
|
CGPoint |
center()
Returns the center of this view.
|
NSLayoutXAxisAnchor |
centerXAnchor()
Returns the horizontal center of the layout guide frame expressed as
layout anchor.
|
NSLayoutYAxisAnchor |
centerYAnchor()
Returns the vertical center of the layout guide frame expressed as layout
anchor.
|
boolean |
clipsToBounds()
A Boolean value that determines whether subviews are confined to the
bounds of the view.
|
List<NSLayoutConstraint> |
constraints()
Returns a list with the layout constraints of this view.
|
float |
contentCompressionResistancePriorityForAxis(int UILayoutConstraintAxis)
Returns the priority with which the content of the view resists to
enlarged concerning an axis.
|
float |
contentHuggingPriorityForAxis(int UILayoutConstraintAxis)
Returns the priority with which the content of the view resists to
shrinking concerning the specified axis.
|
int |
contentMode()
Returns an integer that shows how this view adjusts its content on a size
change.
|
CGPoint |
convertPointFromView(CGPoint point,
UIView view)
Returns the point parameter converted from the coordinate system of the
view parameter to this view's coordinate system.
|
CGPoint |
convertPointToView(CGPoint point,
UIView view)
Returns the parameter point converted from this view's coordinate system
to the coordinate system of the parameter.
|
CGRect |
convertRectFromView(CGRect rect,
UIView view)
Returns the parameter rectangle converted from the parameter's view
coordinate system to this view coordinate system.
|
CGRect |
convertRectToView(CGRect rect,
UIView view)
Returns the parameter rectangle converted from this view's coordinate
system to the coordinate system of the parameter.
|
void |
didAddSubview(UIView subview)
Informs this view that a subview was added.
|
void |
didMoveToSuperview()
Informs this view that its superview changed.
|
void |
didMoveToWindow()
Informs this view that its window changed.
|
void |
drawRect(CGRect rect)
This method is implicitly called when a view is first displayed or when
an event occurs that invalidates a visible part of the view and the view
needs to be redrawn.
|
CGRect |
frame()
Returns a structure that is used to define view's dimensions and position
in the coordinate system of its superview.
|
List<UIGestureRecognizer> |
gestureRecognizers()
Returns a list with the gesture recognizer objects that are connected to
this view.
|
NSLayoutDimension |
heightAnchor()
Returns the height of the layout guide frame expressed as layout anchor.
|
UIView |
hitTest(CGPoint point,
UIEvent event)
Return the view that contains the point parameter and is remotest one in
the view hierarchy tree.
|
void |
insertSubview(UIView subView,
int idx)
Inserts the specified subview in the specified position of this view's
list of subviews.The subview is displayed above the subviews that come
before it in the list and below the subviews that come afterward.
|
boolean |
insetsLayoutMarginsFromSafeArea() |
CGSize |
intrinsicContentSize()
Returns the natural size of this view.
|
void |
invalidateIntrinsicContentSize()
Invalidates the intrinsic size of the content.
|
boolean |
isHidden()
Returns a Boolean value that shows whether this view is hidden or not.
|
boolean |
isMultipleTouchEnabled()
Returns a Boolean that shows whether this view accepts multi-touch
events.
|
boolean |
isOpaque()
Returns a Boolean value that shows if the view is opaque or not.
|
boolean |
isUserInteractionEnabled()
Returns a Boolean that shows whether events triggered by user interaction
are ignored.
|
CALayer |
layer()
Returns the Core Animation layer of this view that is used for rendering.
|
void |
layoutIfNeeded()
Forces the layout of this view's subviews to change immediately when
needed.
|
UIEdgeInsets |
layoutMargins()
Returns the layout margins of this view.
|
void |
layoutMarginsDidChange()
Informs this view that there was a change to its margins.
|
UILayoutGuide |
layoutMarginsGuide()
Returns a layout guides with this views margins.
|
void |
layoutSubviews()
Changes the layout of this view's subviews.
|
NSLayoutXAxisAnchor |
leadingAnchor()
Returns the leading edge of the layout guide frame expressed as layout
anchor.
|
NSLayoutXAxisAnchor |
leftAnchor()
Returns the left edge of the layout guide frame expressed as layout
anchor.
|
UIView |
maskView()
Get the current mask view of this view.
|
boolean |
needsUpdateConstraints()
Returns a Boolean value that shows whether the view's constraints need to
be updated.
|
UIResponder |
nextResponder()
Returns the next responder of the response chain.
|
int |
overrideUserInterfaceStyle()
Retrieve the current user interface style.
|
boolean |
pointInside(CGPoint point,
UIEvent event)
Returns a Boolean value that shows whether the point parameter is in the
coordinate system of this view.This method is triggered by the specified
event parameter.
|
boolean |
preservesSuperviewLayoutMargins()
Retuns a Boolean that show whether this view adapts to its superview
margins.
|
void |
removeConstraint(NSLayoutConstraint constraint)
Removes the specified constraint from this view.
|
void |
removeConstraints(List<NSLayoutConstraint> constraints)
Removes the specified list of constraints from this view.
|
void |
removeFromSuperview()
Removes this view and its subviews from its superview.
|
void |
removeGestureRecognizer(UIGestureRecognizer gesture)
Disconnects a gesture recognizer from this view.
|
void |
removeLayoutGuide(UILayoutGuide layoutGuide)
Removes the layout guide from the related array.
|
static boolean |
requiresConstraintBasedLayout()
Returns a Boolean value that shows whether this view is based on the
constraint based layout system.
|
String |
restorationIdentifier() |
NSLayoutXAxisAnchor |
rightAnchor()
Returns the right edge of the layout guide frame expressed as layout
anchor.
|
UIEdgeInsets |
safeAreaInsets() |
UILayoutGuide |
safeAreaLayoutGuide() |
void |
sendSubviewToBack(UIView subView)
Moves the subview defined as parameter behind the other subviews of this
view.
|
void |
setAccessibilityIdentifier(String accessibilityIdentifier)
Set an id to this instance to be discoverable
|
void |
setAlpha(double alpha)
Sets this view’s alpha value.
|
static void |
setAnimationBeginsFromCurrentState(boolean fromCurrentState)
Sets a Boolean value that defines whether the animation should start
playing from its current state.
|
static void |
setAnimationCurve(int UIViewAnimationCurve)
Sets the type of animation curve.
|
static void |
setAnimationDelay(double delay)
Sets the amount of time (in seconds) to wait before animating property
changes within an animation block.
|
static void |
setAnimationDuration(double duration)
Sets the duration of the animations of a block.
|
static void |
setAnimationRepeatAutoreverses(boolean repeatAutoreverses)
Sets a Boolean value that defines whether the animations of an animation
block reverse themselves automatically.
|
static void |
setAnimationRepeatCount(float repeatCount)
Sets the number of repetitions for the animations of a block.
|
static void |
setAnimationsEnabled(boolean animationsEnabled)
Sets a Boolean that defines whether the animations are enabled.
|
static void |
setAnimationStartDate(NSDate startTime)
Sets the time that the current animation block should begin.
|
void |
setAutoresizesSubviews(boolean autoresizesSubviews)
Returns a Boolean that shows if this view after a change on its size
automatically changes the size of its subviews.
|
void |
setAutoresizingMask(int UIViewAutoresizing)
Sets an integer bit bask that defines the way this view changes its size
on a superview size change.
|
void |
setBackgroundColor(UIColor background)
Set this view's background color.
|
void |
setBounds(CGRect rect)
Sets the bounds for this view in its own coordinate system as described
by the CGRect structure parameter.
|
void |
setCenter(CGPoint center)
Sets the center for this view.
|
void |
setClearsContextBeforeDrawing(boolean clearcontext)
Sets a Boolean value that defines whether the limits of this view will be
cleared before a new drawing.
|
void |
setClipsToBounds(boolean clipsToBounds)
Returns a Boolean that shows whether the subviews of this view are
restricted within the view's boundaries.
|
void |
setContentCompressionResistancePriority(float UILayoutPriority,
int UILayoutConstraintAxis)
Sets the priority with which the view resists to shrinking concerning the
specified axis.
|
void |
setContentHuggingPriority(float UILayoutPriority,
int UILayoutConstraintAxis)
Sets the priority with which the content of the view resists to enlarged
concerning an axis.
|
void |
setContentMode(int UIViewContentMode)
Sets an integer that defines how this view adjusts its content on a size
change.
|
void |
setFrame(CGRect frame)
Sets view's dimensions and position according to the structure specified
as frame parameter.
|
void |
setGestureRecognizers(List<UIGestureRecognizer> gestureRecognizers)
Connects a list of gesture recognizers to this view.
|
void |
setHidden(boolean hidden)
Sets a Boolean value that defines whether this view is hidden or not.
|
void |
setInsetsLayoutMarginsFromSafeArea(boolean insetsLayoutMarginsFromSafeArea) |
void |
setLayoutMargins(UIEdgeInsets layoutMargins)
Sets the layout margins to the specified UIEdgeInsets value
|
void |
setMaskView(UIView maskView)
Set the mask of the current view.
|
void |
setMultipleTouchEnabled(boolean multipleTouchEnabled)
Set a Boolean that defines whether this view accepts multi-touch events.
|
void |
setNeedsDisplay()
Marks this view to be redrawn on the next even cycle.
|
void |
setNeedsLayout()
Sets a flag that indicates that the layout of this view's subviews need
to be updated and also defines that the update will take place on the
next update cycle.
|
void |
setNeedsUpdateConstraints()
Sets a Boolean value that defines whether the view's constraints need to
be updated.
|
void |
setOpaque(boolean opaque)
A Boolean value that determines whether the view is opaque.
|
void |
setOverrideUserInterfaceStyle(int UIUserInterfaceStyle)
Override the user style, whether be light or dark.
|
void |
setPreservesSuperviewLayoutMargins(boolean preservesSuperviewLayoutMargins)
Sets a Boolean value that defines whether this view adapts to its
superview margins.
|
void |
setRestorationIdentifier(String restorationIdentifier) |
void |
setTag(int tag)
Sets an integer used as an id of this view.
|
void |
setTintAdjustmentMode(int UIViewTintAdjustmentMode)
Sets the tint-adjustment mode value of this view as defined by the
specified parameter.
|
void |
setTintColor(UIColor tintColor)
Sets the tint color of this view as defined by the specified parameter.
|
void |
setTransform(CGAffineTransform transform)
Sets the transform that will be applied to this view relative to the
center of its bounds.
|
void |
setTranslatesAutoresizingMaskIntoConstraints(boolean translatesAutoresizingMaskIntoConstraints)
Sets a Boolean value that defines whether this view's autoresizing mask
is interpreted in Auto Layout.
|
void |
setUserInteractionEnabled(boolean userInteraction)
Sets a Boolean that defines whether events triggered by user interaction
are ignored.
|
CGSize |
sizeThatFits(CGSize size)
Returns a size for this view that fits the specified size in an optimal
way.
|
void |
sizeToFit()
Changes view's size and reloates it in order to encircle all its
subviews.
|
List<UIView> |
subviews()
Returns a List with this view's direct descendant subviews in the
hierarchy.
|
UIView |
superview()
Retuns the superview of this view.Null if it has no superview.
|
int |
tag()
Returns the id of this view.
|
int |
tintAdjustmentMode()
Returns the non-default tint adjustment mode value of the short distant
view in the view hierarchy.
|
UIColor |
tintColor()
Returns the non-default tint color value of the short distant view in the
view hierarchy.
|
void |
tintColorDidChange() |
NSLayoutYAxisAnchor |
topAnchor()
Returns the top edge of the layout guide frame expressed as a layout
anchor.
|
String |
toString() |
NSLayoutXAxisAnchor |
trailingAnchor()
Returns the trailing edge of the layout guide frame expressed as an
layout anchor.
|
CGAffineTransform |
transform()
Returns the transform applied to this view relative to the center of its
bounds.
|
static void |
transitionWithView(UIView view,
double duration,
int UIViewAnimationOptions,
Runnable animations,
org.robovm.objc.block.VoidBlock1<Boolean> completion)
Sets the transition to be applied to a parent view during an animation block.
|
boolean |
translatesAutoresizingMaskIntoConstraints()
Returns a value that shows whether this view's autoresizing mask is
interpreted in Auto Layout.
|
void |
updateConstraints()
Update the constraints of this view
|
void |
updateConstraintsIfNeeded() |
int |
userInterfaceLayoutDirection() |
UIView |
viewForFirstBaselineLayout()
Returns a view that is suitable for the top row baseline
|
UIView |
viewForLastBaselineLayout()
Returns a view that is suitable for the bottom row baseline.
|
NSLayoutDimension |
widthAnchor()
Returns the width of the layout guide frame expressed as an layout
anchor.
|
void |
willMoveToSuperview(UIView newSuperview)
Informs this view that its superview will change to the one specified as
parameter.
|
void |
willMoveToWindow(UIWindow newWindow)
Informs this view that its window will change.
|
void |
willRemoveSubview(UIView subview)
Informs this view that a subview will be removed.
|
UIWindow |
window()
Returns this view's window.
|
becomeFirstResponder, isFirstResponder, resignFirstResponder, touchesBegan, touchesCancelled, touchesEnded, touchesMoved
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public static final double NoIntrinsicMetric
public UIView()
public UIView(CGRect frame)
frame
- The frame rectangle for the viewpublic static void animateWithDuration(double duration, Runnable animations)
duration
- The duration of the animations measured in seconds.animations
- The changes to commit to the views. Not NULL.public static void animateWithDuration(double duration, Runnable animations, org.robovm.objc.block.VoidBlock1<Boolean> completion)
public static void animateWithDuration(double duration, double delay, int UIViewAnimationOptions, Runnable animations, org.robovm.objc.block.VoidBlock1<Boolean> completion)
duration
- The duration of the animations measured in seconds.delay
- The delay before the beginning of the animations.UIViewAnimationOptions
- Options to perform the animations.animations
- The changes to commit to the views. Not NULL.completion
- A block object to be executed when the animations ends.UIViewAnimationOptions
public static void transitionWithView(UIView view, double duration, int UIViewAnimationOptions, Runnable animations, org.robovm.objc.block.VoidBlock1<Boolean> completion)
view
- The view to which the transition will be applied.duration
- The duration of the animationUIViewAnimationOptions
- The transition options. Usual values are UIViewAnimationOptions.Transition* valuesanimations
- The changes to commit to the views. Not NULL.completion
- A block object to be executed when the animations ends.UIViewAnimationOptions
public static void setAnimationStartDate(NSDate startTime)
startTime
- The time that the current animation block should begin.public static void setAnimationsEnabled(boolean animationsEnabled)
animationsEnabled
- A Boolean that defines whether the animations
are enabled.public static void setAnimationDuration(double duration)
duration
- The duration of the animations of a block expressed in
seconds.public static void setAnimationDelay(double delay)
delay
- The interval until the change of animation property within a
block expressed in seconds.public static void setAnimationCurve(int UIViewAnimationCurve)
UIViewAnimationCurve
- The type of animation curve.public static void setAnimationRepeatCount(float repeatCount)
repeatCount
- The number of repetitions for the animations of a
block.Zero means no repetition and this number can be a fraction for the
repetitions.public static void setAnimationRepeatAutoreverses(boolean repeatAutoreverses)
repeatAutoreverses
- A Boolean value that defines whether the
animations of an animation block reverse themselves automatically.public static void setAnimationBeginsFromCurrentState(boolean fromCurrentState)
fromCurrentState
- A Boolean value that defines whether the
animation should start playing from its current state.public static boolean areAnimationsEnabled()
public static boolean requiresConstraintBasedLayout()
public UIResponder nextResponder()
UIResponder
nextResponder
in class UIResponder
public CGRect frame()
public void setFrame(CGRect frame)
frame
- The structure that defines view's dimensions and position in
the coordinate system of its superview.public UIView maskView()
setMaskView(UIView)
public void setMaskView(UIView maskView)
maskView
- The new mask view, could be nullpublic int autoresizingMask()
public void setAutoresizingMask(int UIViewAutoresizing)
UIViewAutoresizing
- integer bit bask that defines the way this view
changes its size on a superview size change.UIViewAutoresizing
public boolean autoresizesSubviews()
public void setAutoresizesSubviews(boolean autoresizesSubviews)
autoresizesSubviews
- A Boolean that shows if this view after a
change on its size automatically changes the size of its subviews.public void setNeedsLayout()
public void layoutIfNeeded()
public void layoutSubviews()
public void updateConstraints()
public void updateConstraintsIfNeeded()
public boolean needsUpdateConstraints()
public void setNeedsUpdateConstraints()
public CGRect bounds()
public void setBounds(CGRect rect)
rect
- The CGRect parameter that defines the bounds for this view in
its own coordinate system.public CGPoint center()
public void setCenter(CGPoint center)
center
- The center for this view.public void sendSubviewToBack(UIView subView)
subView
- The subview that is be moved behind the other subviews.public void bringSubviewToFront(UIView subView)
subView
- The subview that is moved in front of the other subviews.public void addSubview(UIView subView)
subView
- The subview that is added at this view's list of subviews.
This subview is displayed above the other subviews.public void insertSubview(UIView subView, int idx)
subView
- The subview to be inserted in the list.idx
- The index in the list. Indexing from 0 to number of subviews.public void removeFromSuperview()
public void didAddSubview(UIView subview)
subview
- The subview that was added to this view.public void willRemoveSubview(UIView subview)
subview
- The subview that will be removed.public void willMoveToSuperview(UIView newSuperview)
newSuperview
- The new superview of this view.public void didMoveToSuperview()
public void willMoveToWindow(UIWindow newWindow)
newWindow
- The new window object of this view.Null parameter is
accepted.public void didMoveToWindow()
public List<UIView> subviews()
public UIView superview()
public boolean isMultipleTouchEnabled()
public void setMultipleTouchEnabled(boolean multipleTouchEnabled)
multipleTouchEnabled
- A Boolean that defines whether this view
accepts multi-touch events.public UIWindow window()
public void setTag(int tag)
tag
- An integer used as id of the view.public int tag()
public void setNeedsDisplay()
public void setBackgroundColor(UIColor background)
background
- The view’s background color.public UIColor backgroundColor()
public void setTintColor(UIColor tintColor)
tintColor
- The new tint color of this view.UIColor
public UIColor tintColor()
public void tintColorDidChange()
public void setTintAdjustmentMode(int UIViewTintAdjustmentMode)
UIViewTintAdjustmentMode
- The new tint-adjustment mode value of
this view.UIViewTintAdjustmentMode
public int tintAdjustmentMode()
public void setOverrideUserInterfaceStyle(int UIUserInterfaceStyle)
UIUserInterfaceStyle
- the new user interface stylepublic int overrideUserInterfaceStyle()
public CGAffineTransform transform()
public void setTransform(CGAffineTransform transform)
transform
- The transform that will be applied to this view relative
to the center of its bounds.public double alpha()
public void setAlpha(double alpha)
alpha
- The view’s alpha value.public boolean isOpaque()
public void setOpaque(boolean opaque)
opaque
- A Boolean value that defines whether the view will be
opaque or not.public void setClearsContextBeforeDrawing(boolean clearcontext)
clearcontext
- A Boolean value that defines whether the limits of
this view will be cleared before a new drawing.public boolean isHidden()
public void setHidden(boolean hidden)
hidden
- A Boolean value that defines whether this view is hidden or
not.public void setContentMode(int UIViewContentMode)
UIViewContentMode
- An integer that defines how this view adjusts
its content on a size change.public int contentMode()
public boolean isUserInteractionEnabled()
public void setUserInteractionEnabled(boolean userInteraction)
userInteraction
- A Boolean that defines whether events triggered by
user interaction are ignored.public void setClipsToBounds(boolean clipsToBounds)
clipsToBounds
- A Boolean that shows whether the subviews of this
view are restricted within the view's boundaries.public boolean clipsToBounds()
public UIView hitTest(CGPoint point, UIEvent event)
point
- The point for which the test takes place.event
- The event that triggers this method call.public boolean pointInside(CGPoint point, UIEvent event)
point
- The point that is checked.event
- The event that triggered this method call.public CGPoint convertPointToView(CGPoint point, UIView view)
point
- The point expressed in the coordinate system of this view.view
- The point to whose coordinate system the conversion will take
place.public CGPoint convertPointFromView(CGPoint point, UIView view)
point
- The point expressed in the coordinate system of the view
parameter.view
- The point to whose coordinate system the rectangle is
expressed. If NULL then window's base coordinates are used.public CGRect convertRectToView(CGRect rect, UIView view)
rect
- The rectangle expressed in the coordinate system of this
view.view
- The view to whose coordinate system the conversion will take
place.public CGRect convertRectFromView(CGRect rect, UIView view)
rect
- The rectangle expressed in the coordinate system of the view
parameter.view
- The view to whose coordinate system the rectangle is
expressed. If NULL then window's base coordinates are used.public void setGestureRecognizers(List<UIGestureRecognizer> gestureRecognizers)
gestureRecognizers
- The list of gesture recognizers that will be
connected to this view.public List<UIGestureRecognizer> gestureRecognizers()
UIGestureRecognizer
public void addGestureRecognizer(UIGestureRecognizer gesture)
gesture
- The gesture recognizer that will be connected.UIGestureRecognizer
public void removeGestureRecognizer(UIGestureRecognizer gesture)
gesture
- The gesture recognizer that will be disconnected.UIGestureRecognizer
public CGSize sizeThatFits(CGSize size)
size
- The size for which the view should calculate its
optimal-fitting size.public void sizeToFit()
public void drawRect(CGRect rect)
rect
- The part of the view that need to be redrawn.public CALayer layer()
public List<NSLayoutConstraint> constraints()
NSLayoutConstraint
public void addConstraint(NSLayoutConstraint constraint)
constraint
- The constraint to be added to the view.public void addConstraints(List<NSLayoutConstraint> constraints)
constraints
- The list of constraints to be added to the view.public void removeConstraint(NSLayoutConstraint constraint)
constraint
- The constraint to be removed from this view.public void removeConstraints(List<NSLayoutConstraint> constraints)
constraints
- The list of constraints to be removed from this view.public boolean translatesAutoresizingMaskIntoConstraints()
public void setTranslatesAutoresizingMaskIntoConstraints(boolean translatesAutoresizingMaskIntoConstraints)
translatesAutoresizingMaskIntoConstraints
- A Boolean value that
defines whether this view's autoresizing mask is interpreted in Auto
Layout.public CGSize intrinsicContentSize()
public void invalidateIntrinsicContentSize()
public float contentCompressionResistancePriorityForAxis(int UILayoutConstraintAxis)
UILayoutConstraintAxis
- The axis for which the priority is set.UILayoutConstraintAxis
public void setContentCompressionResistancePriority(float UILayoutPriority, int UILayoutConstraintAxis)
UILayoutConstraintAxis
- The axis for which the priority is set.UILayoutPriority
- The priority with which the view resists to
shrinking concerning the specified axis.UILayoutConstraintAxis
,
UILayoutPriority
public float contentHuggingPriorityForAxis(int UILayoutConstraintAxis)
UILayoutConstraintAxis
- The axis for which the priority is
returned.UILayoutConstraintAxis
public void setContentHuggingPriority(float UILayoutPriority, int UILayoutConstraintAxis)
UILayoutConstraintAxis
- The axis to which the priority is set.UILayoutPriority
- The priority with which the content resists to be
enlarged.UILayoutConstraintAxis
,
UILayoutPriority
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()
public void addLayoutGuide(UILayoutGuide layoutGuide)
layoutGuide
- The layout guide that will be added to the view.public UIEdgeInsets layoutMargins()
UIEdgeInsets
public void setLayoutMargins(UIEdgeInsets layoutMargins)
layoutMargins
- The layout margins.UIEdgeInsets
public void layoutMarginsDidChange()
public UILayoutGuide layoutMarginsGuide()
public boolean preservesSuperviewLayoutMargins()
public void setPreservesSuperviewLayoutMargins(boolean preservesSuperviewLayoutMargins)
preservesSuperviewLayoutMargins
- A Boolean value that defines
whether this view adapts to its superview margins.public void removeLayoutGuide(UILayoutGuide layoutGuide)
layoutGuide
- The layout that will be removed.public UIView viewForFirstBaselineLayout()
public UIView viewForLastBaselineLayout()
public UIEdgeInsets safeAreaInsets()
public boolean insetsLayoutMarginsFromSafeArea()
public void setInsetsLayoutMarginsFromSafeArea(boolean insetsLayoutMarginsFromSafeArea)
public UILayoutGuide safeAreaLayoutGuide()
public void setAccessibilityIdentifier(String accessibilityIdentifier)
UIAccessibilityIdentification
setAccessibilityIdentifier
in interface UIAccessibilityIdentification
accessibilityIdentifier
- the proposed IDpublic String accessibilityIdentifier()
UIAccessibilityIdentification
accessibilityIdentifier
in interface UIAccessibilityIdentification
public String restorationIdentifier()
public void setRestorationIdentifier(String restorationIdentifier)
public int userInterfaceLayoutDirection()
Copyright © 2020. All rights reserved.