UIKit.UIView: Property Members

The properties of UIKit.UIView are listed below. For a list of all members, see the UIView Members list.

See Also: Inherited members from UIKit.UIResponder

Public Properties

AccessibilityActivationPointCoreGraphics.CGPoint. The screen coordinates for the accessibility element.
AccessibilityElementsHiddenbool. Whether the view's accessibility elements are visible.
AccessibilityFrameCoreGraphics.CGRect. The Frame of the accessibility element, in screen coordinates.
AccessibilityHintstring. A brief description of the action performed by the accessibility element.
AccessibilityIdentifierstring. Uniquely identifies this for the purposes of accessibility.
AccessibilityLabelstring. A localized identifier for the accessibility element.
AccessibilityLanguagestring. The BCP 47 language tag of the language used to speak the accessibility element's components.
AccessibilityNavigationStyleUIAccessibilityNavigationStyle. Gets or sets the navigation style.
AccessibilityPathUIBezierPath. Allows the accessibility element to be non-rectangular.
AccessibilityTraitsUIAccessibilityTrait. A bitmask of the UIKit.UIAccessibilityTraits of this.
AccessibilityValuestring. The value of the accessibility element.
AccessibilityViewIsModalbool. Whether Voice Over should ignore sibling elements.
[read-only]
AlignmentRectInsetsUIEdgeInsets. Adjustments to the UIView.Frame for use with Auto Layout.
Alphanfloat. Controls the transparency (alpha) value for the view.
static
AnimationsEnabledbool. Specifies whether animations are displayed or not.
[read-only]
static
AnnouncementDidFinishNotificationFoundation.NSString. Notification constant for AnnouncementDidFinish
[read-only]
static
AnnouncementNotificationint. An accessibility notification that an announcement will happen.
[read-only]
static
AppearanceUIView.UIViewAppearance. Strongly-typed property that returns the UIAppearance class for this class.
AutoresizingMaskUIViewAutoresizing. A bitmask that specifies how the receiver should resize itself when it's super-view's bounds change.
AutosizesSubviewsbool. Specifies whether the receiver should automatically resize its UIView.Subviews when the receiver's UIView.Bounds change.
BackgroundColorUIColor. Sets the background color of the UIKit.UIView.
[read-only]
static
BoldTextStatusDidChangeNotificationFoundation.NSString. Notification constant for BoldTextStatusDidChange
BoundsCoreGraphics.CGRect. The usable frame of the view, specified using the view's own coordinate system.
CenterCoreGraphics.CGPoint. The center of the view, in the container coordinate space.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
ClearsContextBeforeDrawingbool. Specifies that the drawing buffer be erased prior to calling UIView.DrawRect
ClipsToBoundsbool. Specifies whether the UIView.Subviews are confined to the UIView.Bounds of the receiver.
[read-only]
static
ClosedCaptioningStatusDidChangeNotificationFoundation.NSString. Notification constant for ClosedCaptioningStatusDidChange
[read-only]
ConstraintsNSLayoutConstraint[]. The constraints used by Auto Layout on this UIKit.UIView.
ContentModeUIViewContentMode. Controls how the cached bitmap of a view must be rendered when the view's bounds change.
ContentScaleFactornfloat. The number of device pixels per logical coordinate point.
ContentStretchCoreGraphics.CGRect. Defines an area of the view that is intended to be stretchable.
[read-only]
static
DarkerSystemColorsStatusDidChangeNotificationFoundation.NSString. Notification constant for DarkerSystemColorsStatusDidChange
ExclusiveTouchbool. Restricts the event delivery to this view.
FrameCoreGraphics.CGRect. Coordinates of the view relative to its container.
GestureRecognizersUIGestureRecognizer[]. The array of UIKit.UIGestureRecognizers for this UIKit.UIView.
[read-only]
static
GrayscaleStatusDidChangeNotificationFoundation.NSString. Notification constant for GrayscaleStatusDidChange
[read-only]
static
GuidedAccessStatusDidChangeNotificationFoundation.NSString. Notification constant for GuidedAccessStatusDidChange
[read-only]
HasAmbiguousLayoutbool. Returns true if the Auto Layout for this UIKit.UIView is ambiguous.
Hiddenbool. Specifies whether the UIKit.UIView displays or not.
[read-only]
IntrinsicContentSizeCoreGraphics.CGSize. The size of the intrinsic content of the UIKit.UIView.
[read-only]
static
InvertColorsStatusDidChangeNotificationFoundation.NSString. Notification constant for InvertColorsStatusDidChange
IsAccessibilityElementbool. Whether this is an accessibility element.
[read-only]
LayerCoreAnimation.CALayer. The Core Animation layer used for rendering.
[read-only]
static
LayoutChangedNotificationint. An accessibility notification indicating that the layout has changed.
LayoutMarginsUIEdgeInsets. Lays out margins.
MaskViewUIView. Returns mask view.
[read-only]
static
MonoAudioStatusDidChangeNotificationFoundation.NSString. Notification constant for MonoAudioStatusDidChange
MotionEffectsUIMotionEffect[]. Current set of motion effects on this view.
MultipleTouchEnabledbool. Controls whether the UIView can handle multitouch events.
[read-only]
static
NoIntrinsicMetricnfloat. Represents the value associated with the constant UIViewNoIntrinsicMetric
[read-only]
static
NotificationSwitchControlIdentifierFoundation.NSString. Notification constant for NotificationSwitchContr
Opaquebool. Determines whether the view is opaque or not.
[read-only]
static
PageScrolledNotificationint. An accessibility notification indicating that the page has scrolled.
[read-only]
static
PauseAssistiveTechnologyNotificationint. Pauses assistive technology notifications.
PreservesSuperviewLayoutMarginsbool. Preserves layout margins for superview.
[read-only]
static
ReduceMotionStatusDidChangeNotificationFoundation.NSString. Notification constant for ReduceMotionStatusDidChange
[read-only]
static
ReduceTransparencyStatusDidChangeNotificationFoundation.NSString. Notification constant for ReduceTransparencyStatusDidChange
RestorationIdentifierstring. If not null, indicates that the UIKit.UIView supports state preservation and restoration.
[read-only]
static
ResumeAssistiveTechnologyNotificationint. Resumes assistive technology notifications.
[read-only]
static
ScreenChangedNotificationint. An accessibility notification that the screen has changed.
ShouldGroupAccessibilityChildrenbool. Whether the UIKit.UIView's children should be grouped for the purposes of voice-over, regardless of their position on the screen.
[read-only]
static
SpeakScreenStatusDidChangeNotificationFoundation.NSString. Notification constant for SpeakScreenStatusDidChange
[read-only]
static
SpeakSelectionStatusDidChangeNotificationFoundation.NSString. Notification constant for SpeakSelectionStatusDidChange
[read-only]
static
SpeechAttributeLanguageFoundation.NSString. Retrieves the language used during voice-over.
[read-only]
static
SpeechAttributePitchFoundation.NSString. Retrieves the pitch used by voice-over.
[read-only]
static
SpeechAttributePunctuationFoundation.NSString. Whether punctuation is being pronounced by voice-over.
[read-only]
SubviewsUIView[]. An array of UIKit.UIViews that are contained within this UIKit.UIView.
[read-only]
SuperviewUIView. The UIKit.UIView, if any, that contains this UIKit.UIView in its UIView.Subviews.
[read-only]
static
SwitchControlStatusDidChangeNotificationFoundation.NSString. Notification constant for SwitchControlStatusDidChange
Tagnint. An integer that can be used to identify a specific UIKit.UIView instance.
TintAdjustmentModeUIViewTintAdjustmentMode. The tint adjustment applied to this UIKit.UIView or one of its parent views.
TintColorUIColor. A highlight color which should be used to indicate interactive controls.
[read-only]
static
TraitAdjustablelong. An accessibility trait indicating that the underlying value can be adjusted continuously, as with a slider.
[read-only]
static
TraitAllowsDirectInteractionlong. An accessibility trait indicating that the user can interact directly with the UIKit.UIView.
[read-only]
static
TraitButtonlong. An accessibility trait indicating button-like behavior.
[read-only]
static
TraitCausesPageTurnlong. An accessibility trait indicating that the UIKit.UIView causes a page turn after voice over completes.
[read-only]
TraitCollectionUITraitCollection. Returns a trait collection.
[read-only]
static
TraitHeaderlong. An accessibility trait indicating that the UIKit.UIView is a divider between content sections.
[read-only]
static
TraitImagelong. An accessibility trait indicating the view should be treated as an image.
[read-only]
static
TraitKeyboardKeylong. An accessibility trait indicating that the UIKit.UIView should be treated as a keyboard key.
[read-only]
static
TraitLinklong. An accessibility trait indicating that the UIKit.UIView should be treated as a hyperlink.
[read-only]
static
TraitNonelong. Indicates that the UIKit.UIView has no accessibility traits.
[read-only]
static
TraitNotEnabledlong. An accessibility trait indicating that the UIKit.UIView is disabled and does not allow user interaction.
[read-only]
static
TraitPlaysSoundlong. An accessibility trait indicating the accessibility element should play its sound when the UIKit.UIView is activated.
[read-only]
static
TraitSearchFieldlong. An accessibility trait indicating that the UIKit.UIView is a search field.
[read-only]
static
TraitSelectedlong. An accessibility trait indicating that the UIKit.UIView is currently selected.
[read-only]
static
TraitStartsMediaSessionlong. An accessibility trait that starts a media session when the UIKit.UIView is activated.
[read-only]
static
TraitStaticTextlong. An accessibility trait indicating that the UIKit.UIView contains static text.
[read-only]
static
TraitSummaryElementlong. An accessibility trait indicating that the UIKit.UIView contains summary information.
[read-only]
static
TraitUpdatesFrequentlylong. An accessibility trait indicating that the UIKit.UIView updates frequently.
TransformCoreGraphics.CGAffineTransform. The transform of the UIKit.UIView, relative to the center of its bounds.
TranslatesAutoresizingMaskIntoConstraintsbool. Specifies whether the autoresizing mask should be translated into constraints for Auto Layout.
[read-only]
static
UILayoutFittingCompressedSizeCoreGraphics.CGSize. Represents the value associated with the constant UILayoutFittingCompressedSize
[read-only]
static
UILayoutFittingExpandedSizeCoreGraphics.CGSize. Represents the value associated with the constant UILayoutFittingExpandedSize
UserInteractionEnabledbool. Determines whether input events are processed by this view.
[read-only]
ViewForBaselineLayoutUIView. Returns the UIKit.UIView upon which baseline constraints should be applied.
[read-only]
ViewPrintFormatterUIViewPrintFormatter. Returns a UIKit.UIViewPrintFormatter appropriate for the UIKit.UIView.
[read-only]
static
VoiceOverStatusChangedFoundation.NSString. An accessibility notification indicating that the status of voice-over has changed.
[read-only]
WindowUIWindow. The UIKit.UIWindow of the UIKit.UIView.