UIView Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
[Foundation.Register("UIView", true)]
public class UIView : UIKit.UIResponder, CoreAnimation.ICALayerDelegate, Foundation.INSCoding, IDisposable, System.Collections.IEnumerable, UIKit.IUIAccessibilityIdentification, UIKit.IUIAppearance, UIKit.IUIAppearanceContainer, UIKit.IUICoordinateSpace, UIKit.IUIDynamicItem, UIKit.IUIFocusItem, UIKit.IUIFocusItemContainer, UIKit.IUILargeContentViewerItem, UIKit.IUIPopoverPresentationControllerSourceItem, UIKit.IUITraitChangeObservable, UIKit.IUITraitEnvironment
[Foundation.Register("UIView", true)]
public class UIView : UIKit.UIResponder, CoreAnimation.ICALayerDelegate, Foundation.INSCoding, IDisposable, System.Collections.IEnumerable, UIKit.IUIAccessibilityIdentification, UIKit.IUIAppearance, UIKit.IUIAppearanceContainer, UIKit.IUICoordinateSpace, UIKit.IUIDynamicItem, UIKit.IUIFocusItem, UIKit.IUIFocusItemContainer, UIKit.IUITraitChangeObservable, UIKit.IUITraitEnvironment
[<Foundation.Register("UIView", true)>]
type UIView = class
inherit UIResponder
interface IEnumerable
interface INSCoding
interface INativeObject
interface IDisposable
interface IUIAccessibilityIdentification
interface IUIAppearance
interface IUIAppearanceContainer
interface IUICoordinateSpace
interface IUIDynamicItem
interface IUIFocusEnvironment
interface IUIFocusItem
interface IUIFocusItemContainer
interface IUILargeContentViewerItem
interface IUIPopoverPresentationControllerSourceItem
interface IUITraitChangeObservable
interface IUITraitEnvironment
interface ICALayerDelegate
[<Foundation.Register("UIView", true)>]
type UIView = class
inherit UIResponder
interface IEnumerable
interface INSCoding
interface INativeObject
interface IDisposable
interface IUIAccessibilityIdentification
interface IUIAppearance
interface IUIAppearanceContainer
interface IUICoordinateSpace
interface IUIDynamicItem
interface IUIFocusEnvironment
interface IUIFocusItem
interface IUIFocusItemContainer
interface IUITraitChangeObservable
interface IUITraitEnvironment
interface ICALayerDelegate
- Inheritance
- Derived
- Attributes
- Implements
-
ICALayerDelegate INSCoding INativeObject IEnumerable IDisposable IUIAccessibilityIdentification IUIAppearance IUIAppearanceContainer IUICoordinateSpace IUIDynamicItem IUIFocusEnvironment IUIFocusItem IUIFocusItemContainer IUILargeContentViewerItem IUIPopoverPresentationControllerSourceItem IUITraitChangeObservable IUITraitEnvironment
Constructors
| UIView() |
Creates a new UIView with default values. |
| UIView(CGRect) | |
| UIView(NativeHandle) |
A constructor used when creating managed representations of unmanaged objects. Called by the runtime. |
| UIView(NSCoder) |
A constructor that initializes the object from the data stored in the unarchiver object. |
| UIView(NSObjectFlag) |
Constructor to call on derived classes to skip initialization and merely allocate the object. |
Properties
| AccessibilityActivationPoint | |
| AccessibilityAssistiveTechnologyFocusedIdentifiers | (Inherited from UIResponder) |
| AccessibilityAttributedHint | |
| AccessibilityAttributedLabel | |
| AccessibilityAttributedUserInputLabels | |
| AccessibilityAttributedValue | |
| AccessibilityCustomActions | (Inherited from UIResponder) |
| AccessibilityDirectTouchOptions | |
| AccessibilityDragSourceDescriptors | (Inherited from UIResponder) |
| AccessibilityDropPointDescriptors | (Inherited from UIResponder) |
| AccessibilityElementsHidden | |
| AccessibilityExpandedStatus | |
| AccessibilityFrame | |
| AccessibilityHeaderElements | |
| AccessibilityHint | |
| AccessibilityIdentifier |
Uniquely identifies |
| AccessibilityIgnoresInvertColors | |
| AccessibilityLabel | |
| AccessibilityLanguage | |
| AccessibilityNavigationStyle | |
| AccessibilityPath | |
| AccessibilityRespondsToUserInteraction | |
| AccessibilityTextualContext | |
| AccessibilityTraits | |
| AccessibilityUserInputLabels | |
| AccessibilityValue | |
| AccessibilityViewIsModal | |
| ActivityItemsConfiguration | (Inherited from UIResponder) |
| AlignmentRectInsets | |
| Alpha | |
| AnchorPoint | |
| AnimationsEnabled | |
| AnnouncementDidFinishNotification |
Notification constant for AnnouncementDidFinish |
| AnnouncementNotification |
Gets the notification posted by an application that an announcement requires assistive technology. |
| Appearance |
Strongly-typed property that returns the UIAppearance class for this class. |
| AppliedContentSizeCategoryLimitsDescription | |
| AssistiveTechnologyKey |
Notification constant for AssistiveTechnologyKey |
| AssistiveTouchStatusDidChangeNotification |
Notification constant for AssistiveTouchStatusDidChange |
| AutoresizingMask | |
| AutosizesSubviews | |
| BackgroundColor |
The color used for the background. |
| BoldTextStatusDidChangeNotification |
Notification constant for BoldTextStatusDidChange |
| BottomAnchor | |
| Bounds | |
| ButtonShapesEnabledStatusDidChangeNotification |
Notification constant for ButtonShapesEnabledStatusDidChange |
| CanBecomeFirstResponder | (Inherited from UIResponder) |
| CanBecomeFocused | |
| CanResignFirstResponder | (Inherited from UIResponder) |
| Center | |
| CenterXAnchor | |
| CenterYAnchor | |
| Class | (Inherited from NSObject) |
| ClassHandle |
The Objective-C class handle for this class. |
| ClearsContextBeforeDrawing | |
| ClipsToBounds | |
| ClosedCaptioningStatusDidChangeNotification |
Notification constant for ClosedCaptioningStatusDidChange |
| CollisionBoundingPath |
Returns the closed path that is used for collision detection. |
| CollisionBoundsType |
Returns a value that tells how collision bounds are specified. |
| Constraints | |
| ContentMode | |
| ContentScaleFactor | |
| ContentStretch | |
| CoordinateSpace |
Gets the coordinate space implemenation. |
| CornerConfiguration | |
| DarkerSystemColorsStatusDidChangeNotification |
Notification constant for DarkerSystemColorsStatusDidChange |
| DebugDescription | (Inherited from NSObject) |
| Description | (Inherited from NSObject) |
| DirectionalLayoutMargins | |
| EditingInteractionConfiguration | (Inherited from UIResponder) |
| EffectiveUserInterfaceLayoutDirection | |
| ElementFocusedNotification |
Notification constant for ElementFocused |
| ExclusiveTouch |
Restricts the event delivery to this view. |
| FirstBaselineAnchor | |
| Focused |
Whether the UIView is the focused view. |
| FocusedElementKey |
Notification constant for FocusedElementKey |
| FocusEffect | |
| FocusGroupIdentifier | |
| FocusGroupPriority | |
| FocusItemContainer |
Gets the container that manages focus information for child focus items. |
| FocusItemDeferralMode | |
| Frame | |
| GestureRecognizers | |
| GrayscaleStatusDidChangeNotification |
Notification constant for GrayscaleStatusDidChange |
| GuidedAccessStatusDidChangeNotification |
Notification constant for GuidedAccessStatusDidChange |
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from NSObject) |
| HasAmbiguousLayout | |
| HearingDevicePairedEarDidChangeNotification |
Notification constant for HearingDevicePairedEarDidChange |
| HeightAnchor | |
| Hidden |
Specifies whether the UIView displays or not. |
| HoverStyle | |
| InheritedAnimationDuration | |
| InputAccessoryView | (Inherited from UIResponder) |
| InputAccessoryViewController | (Inherited from UIResponder) |
| InputAssistantItem | (Inherited from UIResponder) |
| InputView | (Inherited from UIResponder) |
| InputViewController | (Inherited from UIResponder) |
| InsetsLayoutMarginsFromSafeArea | |
| Interactions | |
| IntrinsicContentSize | |
| InvertColorsStatusDidChangeNotification |
Notification constant for InvertColorsStatusDidChange |
| IsAccessibilityElement | |
| IsDirectBinding | (Inherited from NSObject) |
| IsFirstResponder | (Inherited from UIResponder) |
| IsProxy | (Inherited from NSObject) |
| IsTransparentFocusItem | |
| KeyboardLayoutGuide | |
| KeyCommands | (Inherited from UIResponder) |
| LargeContentImage | |
| LargeContentImageInsets | |
| LargeContentTitle | |
| LastBaselineAnchor | |
| Layer | |
| LayoutChangedNotification |
Gets the notification posted by an application that the layout of a screen has changed. |
| LayoutGuides | |
| LayoutMargins | |
| LayoutMarginsGuide | |
| LeadingAnchor | |
| LeftAnchor | |
| MaskView | |
| MaximumContentSizeCategory | |
| MinimumContentSizeCategory | |
| MonoAudioStatusDidChangeNotification |
Notification constant for MonoAudioStatusDidChange |
| MotionEffects | |
| MultipleTouchEnabled |
Controls whether the UIView can handle multitouch events. |
| NextResponder | (Inherited from UIResponder) |
| NoIntrinsicMetric |
Represents the value associated with the constant UIViewNoIntrinsicMetric |
| NotificationSwitchControlIdentifier |
Notification constant for NotificationSwitchContr |
| NotificationVoiceOverIdentifier |
Notification constant for NotificationVoiceOv |
| OnOffSwitchLabelsDidChangeNotification |
Notification constant for OnOffSwitchLabelsDidChange |
| Opaque |
Determines whether the view is opaque or not. |
| OverrideUserInterfaceStyle | |
| PageScrolledNotification |
Gets the notification posted by an application that a scroll action has finished. |
| ParentFocusEnvironment |
Gets the parent focus environment. |
| PasteConfiguration |
The UIPasteConfiguration supported by |
| PauseAssistiveTechnologyNotification |
Pauses assistive technology notifications. |
| PreferredFocusedView |
If not |
| PreferredFocusEnvironments |
Gets the list of focus environments, ordered by priority, that the environment prefers when updating the focus. |
| PrefersCrossFadeTransitionsStatusDidChangeNotification |
Notification constant for PrefersCrossFadeTransitionsStatusDidChange |
| PreservesSuperviewLayoutMargins | |
| ReadableContentGuide | |
| ReduceMotionStatusDidChangeNotification |
Notification constant for ReduceMotionStatusDidChange |
| ReduceTransparencyStatusDidChangeNotification |
Notification constant for ReduceTransparencyStatusDidChange |
| RestorationIdentifier | |
| ResumeAssistiveTechnologyNotification |
Resumes assistive technology notifications. |
| RetainCount | (Inherited from NSObject) |
| RightAnchor | |
| SafeAreaInsets | |
| SafeAreaLayoutGuide | |
| ScalesLargeContentImage | |
| ScreenChangedNotification |
Gets the notification posted by an application that a new view appears that includes a major portion of the screen. |
| Self | (Inherited from NSObject) |
| SemanticContentAttribute | |
| ShakeToUndoDidChangeNotification |
Notification constant for ShakeToUndoDidChange |
| ShouldDifferentiateWithoutColorDidChangeNotification |
Notification constant for ShouldDifferentiateWithoutColorDidChange |
| ShouldGroupAccessibilityChildren | |
| ShowsLargeContentViewer | |
| SpeakScreenStatusDidChangeNotification |
Notification constant for SpeakScreenStatusDidChange |
| SpeakSelectionStatusDidChangeNotification |
Notification constant for SpeakSelectionStatusDidChange |
| SpeechAttributeAnnouncementPriority |
Represents the value associated with the constant 'UIAccessibilitySpeechAttributeAnnouncementPriority'. |
| SpeechAttributeIpaNotation |
Returns the IPA notation for the accessibility attributed string. |
| SpeechAttributeLanguage |
Gets a BCP-47 language code. |
| SpeechAttributePitch |
Gets the value from 0.0 to 2.0 that determines the pitch for a spoken string. |
| SpeechAttributePunctuation |
Gets a value to be interpreted as a |
| SpeechAttributeQueueAnnouncement |
Key for option that spoken text interrupt existing spoken content. |
| SpeechAttributeSpellOut |
Represents the value associated with the constant 'UIAccessibilitySpeechAttributeSpellOut'. |
| Subviews | |
| Superclass | (Inherited from NSObject) |
| SuperHandle |
Handle used to represent the methods in the base class for this NSObject. (Inherited from NSObject) |
| Superview | |
| SwitchControlStatusDidChangeNotification |
Notification constant for SwitchControlStatusDidChange |
| Tag | |
| TextAttributeContext |
Represents the value associated with the constant 'UIAccessibilityTextAttributeContext'. |
| TextAttributeCustom |
Key for option that custom attributes be applied to the accessibility text. |
| TextAttributeHeadingLevel |
Key for option of the accessibility text's heading level. |
| TextInputContextIdentifier | (Inherited from UIResponder) |
| TextInputMode | (Inherited from UIResponder) |
| TintAdjustmentMode | |
| TintColor |
The color used for tinting. |
| TopAnchor | |
| TouchBar | (Inherited from UIResponder) |
| TrailingAnchor | |
| TraitAdjustable |
Obsolete.
Gets a trait that allows continuous adjustment of an accessibility element through a range of values. |
| TraitAllowsDirectInteraction |
Obsolete.
Gets a trait that allows direct touch interaction for users. |
| TraitButton |
Obsolete.
Gets a trait that indicates that |
| TraitCausesPageTurn |
Obsolete.
Gets a trait that indicates that |
| TraitCollection |
Gets the trait collection that describes the environment. |
| TraitHeader |
Obsolete.
Gets a trait that indicates that |
| TraitImage |
Obsolete.
Gets a trait that indicates that |
| TraitKeyboardKey |
Obsolete.
Gets a trait that indicates that |
| TraitLink |
Obsolete.
Gets a trait that indicates that |
| TraitNone |
Obsolete.
Gets a trait that indicates that |
| TraitNotEnabled |
Obsolete.
Gets a trait that indicates that |
| TraitOverrides | |
| TraitPlaysSound |
Obsolete.
Gets a trait that indicates that |
| TraitSearchField |
Obsolete.
Gets a trait that indicates that |
| TraitSelected |
Obsolete.
Gets a trait that indicates that |
| TraitStartsMediaSession |
Obsolete.
Gets a trait that indicates that |
| TraitStaticText |
Obsolete.
Gets a trait that indicates that |
| TraitSummaryElement |
Obsolete.
Gets a trait that provides summary information when an application starts. |
| TraitTabBar |
Obsolete.
Represents the value associated with the constant 'UIAccessibilityTraitTabBar'. |
| TraitUpdatesFrequently |
Obsolete.
Gets a trait that indicates that |
| Transform | |
| Transform3D | |
| TranslatesAutoresizingMaskIntoConstraints | |
| UILayoutFittingCompressedSize |
Represents the value associated with the constant UILayoutFittingCompressedSize |
| UILayoutFittingExpandedSize |
Represents the value associated with the constant UILayoutFittingExpandedSize |
| UndoManager | (Inherited from UIResponder) |
| UnfocusedElementKey |
Notification constant for UnfocusedElementKey |
| UserActivity | (Inherited from UIResponder) |
| UserInteractionEnabled |
Determines whether input events are processed by this view. |
| VideoAutoplayStatusDidChangeNotification |
Notification constant for VideoAutoplayStatusDidChange |
| ViewForBaselineLayout | |
| ViewForFirstBaselineLayout | |
| ViewForLastBaselineLayout | |
| ViewPrintFormatter | |
| VoiceOverStatusChanged |
Developers should not use this deprecated property. Developers should use 'VoiceOverStatusDidChangeNotification' instead. |
| VoiceOverStatusDidChangeNotification |
Notification constant for VoiceOverStatusDidChange |
| WidthAnchor | |
| Window | |
| Zone | (Inherited from NSObject) |
Methods
Events
| AnimationWillEnd |
This event is raised when the animations will end. |
| AnimationWillStart |
This event is raised when the animations will start. |