UIView Clase
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
[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
- Herencia
- Derivado
- Atributos
- Implementaciones
-
ICALayerDelegate INSCoding INativeObject IEnumerable IDisposable IUIAccessibilityIdentification IUIAppearance IUIAppearanceContainer IUICoordinateSpace IUIDynamicItem IUIFocusEnvironment IUIFocusItem IUIFocusItemContainer IUILargeContentViewerItem IUIPopoverPresentationControllerSourceItem IUITraitChangeObservable IUITraitEnvironment
Constructores
| Nombre | Description |
|---|---|
| UIView() |
Crea un nuevo UIView con valores predeterminados. |
| UIView(CGRect) | |
| UIView(NativeHandle) |
Constructor usado al crear representaciones administradas de objetos no administrados. Llamado por el tiempo de ejecución. |
| UIView(NSCoder) |
Constructor que inicializa el objeto a partir de los datos almacenados en el objeto unarchiver. |
| UIView(NSObjectFlag) |
Constructor para llamar a en clases derivadas para omitir la inicialización y simplemente asignar el objeto. |
Propiedades
| Nombre | Description |
|---|---|
| AccessibilityActivationPoint | |
| AccessibilityAssistiveTechnologyFocusedIdentifiers | (Heredado de UIResponder) |
| AccessibilityAttributedHint | |
| AccessibilityAttributedLabel | |
| AccessibilityAttributedUserInputLabels | |
| AccessibilityAttributedValue | |
| AccessibilityCustomActions | (Heredado de UIResponder) |
| AccessibilityDirectTouchOptions | |
| AccessibilityDragSourceDescriptors | (Heredado de UIResponder) |
| AccessibilityDropPointDescriptors | (Heredado de UIResponder) |
| AccessibilityElementsHidden | |
| AccessibilityExpandedStatus | |
| AccessibilityFrame | |
| AccessibilityHeaderElements | |
| AccessibilityHint | |
| AccessibilityIdentifier |
Identifica |
| AccessibilityIgnoresInvertColors | |
| AccessibilityLabel | |
| AccessibilityLanguage | |
| AccessibilityNavigationStyle | |
| AccessibilityPath | |
| AccessibilityRespondsToUserInteraction | |
| AccessibilityTextualContext | |
| AccessibilityTraits | |
| AccessibilityUserInputLabels | |
| AccessibilityValue | |
| AccessibilityViewIsModal | |
| ActivityItemsConfiguration | (Heredado de UIResponder) |
| AlignmentRectInsets | |
| Alpha | |
| AnchorPoint | |
| AnimationsEnabled | |
| AnnouncementDidFinishNotification |
Constante de notificación para AnnouncementDidFinish |
| AnnouncementNotification |
Obtiene la notificación publicada por una aplicación que requiere tecnología de asistencia. |
| Appearance |
Propiedad fuertemente tipada que devuelve la clase UIAppearance para esta clase. |
| AppliedContentSizeCategoryLimitsDescription | |
| AssistiveTechnologyKey |
Constante de notificación para AssistiveTechnologyKey |
| AssistiveTouchStatusDidChangeNotification |
Constante de notificación para AssistiveTouchStatusDidChange |
| AutoresizingMask | |
| AutosizesSubviews | |
| BackgroundColor |
Color usado para el fondo. |
| BoldTextStatusDidChangeNotification |
Constante de notificación para BoldTextStatusDidChange |
| BottomAnchor | |
| Bounds | |
| ButtonShapesEnabledStatusDidChangeNotification |
Constante de notificación para ButtonShapesEnabledStatusDidChange |
| CanBecomeFirstResponder | (Heredado de UIResponder) |
| CanBecomeFocused | |
| CanResignFirstResponder | (Heredado de UIResponder) |
| Center | |
| CenterXAnchor | |
| CenterYAnchor | |
| Class | (Heredado de NSObject) |
| ClassHandle |
Identificador de clase Objective-C para esta clase. |
| ClearsContextBeforeDrawing | |
| ClipsToBounds | |
| ClosedCaptioningStatusDidChangeNotification |
Constante de notificación para ClosedCaptioningStatusDidChange |
| CollisionBoundingPath |
Devuelve la ruta de acceso cerrada que se usa para la detección de colisiones. |
| CollisionBoundsType |
Devuelve un valor que indica cómo se especifican los límites de colisión. |
| Constraints | |
| ContentMode | |
| ContentScaleFactor | |
| ContentStretch | |
| CoordinateSpace |
Obtiene la implementación del espacio de coordenadas. |
| CornerConfiguration | |
| DarkerSystemColorsStatusDidChangeNotification |
Constante de notificación para DarkerSystemColorsStatusDidChange |
| DebugDescription | (Heredado de NSObject) |
| Description | (Heredado de NSObject) |
| DirectionalLayoutMargins | |
| EditingInteractionConfiguration | (Heredado de UIResponder) |
| EffectiveUserInterfaceLayoutDirection | |
| ElementFocusedNotification |
Constante de notificación para ElementFocused |
| ExclusiveTouch |
Restringe la entrega de eventos a esta vista. |
| FirstBaselineAnchor | |
| Focused |
Indica si es UIView la vista centrada. |
| FocusedElementKey |
Constante de notificación para FocusedElementKey |
| FocusEffect | |
| FocusGroupIdentifier | |
| FocusGroupPriority | |
| FocusItemContainer |
Obtiene el contenedor que administra la información de foco para los elementos de foco secundarios. |
| FocusItemDeferralMode | |
| Frame | |
| GestureRecognizers | |
| GrayscaleStatusDidChangeNotification |
Constante de notificación para GrayscaleStatusDidChange |
| GuidedAccessStatusDidChangeNotification |
Constante de notificación para GuidedAccessStatusDidChange |
| Handle |
Controla (puntero) a la representación de objeto no administrada. (Heredado de NSObject) |
| HasAmbiguousLayout | |
| HearingDevicePairedEarDidChangeNotification |
Constante de notificación para HearingDeviceNciesEarDidChange |
| HeightAnchor | |
| Hidden |
Especifica si se UIView muestra o no. |
| HoverStyle | |
| InheritedAnimationDuration | |
| InputAccessoryView | (Heredado de UIResponder) |
| InputAccessoryViewController | (Heredado de UIResponder) |
| InputAssistantItem | (Heredado de UIResponder) |
| InputView | (Heredado de UIResponder) |
| InputViewController | (Heredado de UIResponder) |
| InsetsLayoutMarginsFromSafeArea | |
| Interactions | |
| IntrinsicContentSize | |
| InvertColorsStatusDidChangeNotification |
Constante de notificación para InvertColorsStatusDidChange |
| IsAccessibilityElement | |
| IsDirectBinding |
Obtiene o establece un valor que indica si esta instancia usa Objective-C enlace directo. (Heredado de NSObject) |
| IsFirstResponder | (Heredado de UIResponder) |
| IsProxy | (Heredado de NSObject) |
| IsTransparentFocusItem | |
| KeyboardLayoutGuide | |
| KeyCommands | (Heredado de UIResponder) |
| LargeContentImage | |
| LargeContentImageInsets | |
| LargeContentTitle | |
| LastBaselineAnchor | |
| Layer | |
| LayoutChangedNotification |
Obtiene la notificación publicada por una aplicación que ha cambiado el diseño de una pantalla. |
| LayoutGuides | |
| LayoutMargins | |
| LayoutMarginsGuide | |
| LeadingAnchor | |
| LeftAnchor | |
| MaskView | |
| MaximumContentSizeCategory | |
| MinimumContentSizeCategory | |
| MonoAudioStatusDidChangeNotification |
Constante de notificación para MonoAudioStatusDidChange |
| MotionEffects | |
| MultipleTouchEnabled |
Controla si uiView puede controlar eventos multitouch. |
| NextResponder | (Heredado de UIResponder) |
| NoIntrinsicMetric |
Representa el valor asociado a la constante UIViewNoIntrinsicMetric. |
| NotificationSwitchControlIdentifier |
Constante de notificación para NotificationSwitchContr |
| NotificationVoiceOverIdentifier |
Constante de notificación para NotificationVoiceOv |
| OnOffSwitchLabelsDidChangeNotification |
Constante de notificación para OnOffSwitchLabelsDidChange |
| Opaque |
Determina si la vista es opaca o no. |
| OverrideUserInterfaceStyle | |
| PageScrolledNotification |
Obtiene la notificación publicada por una aplicación que ha finalizado una acción de desplazamiento. |
| ParentFocusEnvironment |
Obtiene el entorno de enfoque primario. |
| PasteConfiguration |
Compatible UIPasteConfiguration con |
| PauseAssistiveTechnologyNotification |
Pausa las notificaciones de tecnología de asistencia. |
| PreferredFocusedView |
Si no es |
| PreferredFocusEnvironments |
Obtiene la lista de entornos de enfoque ordenados por prioridad, que el entorno prefiere al actualizar el foco. |
| PrefersCrossFadeTransitionsStatusDidChangeNotification |
Constante de notificación para PrefersCrossFadeTransitionsStatusDidChange |
| PreservesSuperviewLayoutMargins | |
| ReadableContentGuide | |
| ReduceMotionStatusDidChangeNotification |
Constante de notificación para ReduceMotionStatusDidChange |
| ReduceTransparencyStatusDidChangeNotification |
Constante de notificación para ReduceTransparencyStatusDidChange |
| RestorationIdentifier | |
| ResumeAssistiveTechnologyNotification |
Reanuda las notificaciones de tecnología de asistencia. |
| RetainCount | (Heredado de NSObject) |
| RightAnchor | |
| SafeAreaInsets | |
| SafeAreaLayoutGuide | |
| ScalesLargeContentImage | |
| ScreenChangedNotification |
Obtiene la notificación publicada por una aplicación que aparece una nueva vista que incluye una parte principal de la pantalla. |
| Self | (Heredado de NSObject) |
| SemanticContentAttribute | |
| ShakeToUndoDidChangeNotification |
Constante de notificación para ShakeToUndoDidChange |
| ShouldDifferentiateWithoutColorDidChangeNotification |
Constante de notificación para ShouldDifferentiateWithoutColorDidChange |
| ShouldGroupAccessibilityChildren | |
| ShowsLargeContentViewer | |
| SpeakScreenStatusDidChangeNotification |
Constante de notificación para SpeakScreenStatusDidChange |
| SpeakSelectionStatusDidChangeNotification |
Constante de notificación para SpeakSelectionStatusDidChange |
| SpeechAttributeAnnouncementPriority |
Representa el valor asociado a la constante "UIAccessibilitySpeechAttributeAnnouncementPriority". |
| SpeechAttributeIpaNotation |
Devuelve la notación IPA de la cadena con atributos de accesibilidad. |
| SpeechAttributeLanguage |
Obtiene un código de lenguaje BCP-47. |
| SpeechAttributePitch |
Obtiene el valor de 0,0 a 2,0 que determina el tono de una cadena hablada. |
| SpeechAttributePunctuation |
Obtiene un valor que se interpretará como que |
| SpeechAttributeQueueAnnouncement |
Clave para la opción que el texto hablado interrumpe el contenido hablado existente. |
| SpeechAttributeSpellOut |
Representa el valor asociado a la constante "UIAccessibilitySpeechAttributeSpellOut". |
| Subviews | |
| Superclass | (Heredado de NSObject) |
| SuperHandle |
Identificador usado para representar los métodos de la clase base para este NSObject. (Heredado de NSObject) |
| Superview | |
| SwitchControlStatusDidChangeNotification |
Constante de notificación para SwitchControlStatusDidChange |
| Tag | |
| TextAttributeContext |
Representa el valor asociado a la constante "UIAccessibilityTextAttributeContext". |
| TextAttributeCustom |
Clave para la opción que se aplican atributos personalizados al texto de accesibilidad. |
| TextAttributeHeadingLevel |
Clave para la opción del nivel de título del texto de accesibilidad. |
| TextInputContextIdentifier | (Heredado de UIResponder) |
| TextInputMode | (Heredado de UIResponder) |
| TintAdjustmentMode | |
| TintColor |
Color utilizado para la tinción. |
| TopAnchor | |
| TouchBar | (Heredado de UIResponder) |
| TrailingAnchor | |
| TraitAdjustable |
Obsoletos.
Obtiene un rasgo que permite el ajuste continuo de un elemento de accesibilidad a través de un intervalo de valores. |
| TraitAllowsDirectInteraction |
Obsoletos.
Obtiene un rasgo que permite la interacción táctil directa para los usuarios. |
| TraitButton |
Obsoletos.
Obtiene un rasgo que indica que el |
| TraitCausesPageTurn |
Obsoletos.
Obtiene un rasgo que indica que el |
| TraitCollection |
Obtiene la colección de rasgos que describe el entorno. |
| TraitHeader |
Obsoletos.
Obtiene un rasgo que indica que el |
| TraitImage |
Obsoletos.
Obtiene un rasgo que indica que el |
| TraitKeyboardKey |
Obsoletos.
Obtiene un rasgo que indica que el |
| TraitLink |
Obsoletos.
Obtiene un rasgo que indica que |
| TraitNone |
Obsoletos.
Obtiene un rasgo que indica que el |
| TraitNotEnabled |
Obsoletos.
Obtiene un rasgo que indica que el |
| TraitOverrides | |
| TraitPlaysSound |
Obsoletos.
Obtiene un rasgo que indica que |
| TraitSearchField |
Obsoletos.
Obtiene un rasgo que indica que el |
| TraitSelected |
Obsoletos.
Obtiene un rasgo que indica que |
| TraitStartsMediaSession |
Obsoletos.
Obtiene un rasgo que indica que el |
| TraitStaticText |
Obsoletos.
Obtiene un rasgo que indica que el |
| TraitSummaryElement |
Obsoletos.
Obtiene un rasgo que proporciona información de resumen cuando se inicia una aplicación. |
| TraitTabBar |
Obsoletos.
Representa el valor asociado a la constante "UIAccessibilityTraitTabBar". |
| TraitUpdatesFrequently |
Obsoletos.
Obtiene un rasgo que indica que el |
| Transform | |
| Transform3D | |
| TranslatesAutoresizingMaskIntoConstraints | |
| UILayoutFittingCompressedSize |
Representa el valor asociado a la constante UILayoutFittingCompressedSize. |
| UILayoutFittingExpandedSize |
Representa el valor asociado a la constante UILayoutFittingExpandedSize. |
| UndoManager | (Heredado de UIResponder) |
| UnfocusedElementKey |
Constante de notificación para UnfocusedElementKey |
| UserActivity | (Heredado de UIResponder) |
| UserInteractionEnabled |
Determina si esta vista procesa los eventos de entrada. |
| VideoAutoplayStatusDidChangeNotification |
Constante de notificación para VideoAutoplayStatusDidChange |
| ViewForBaselineLayout | |
| ViewForFirstBaselineLayout | |
| ViewForLastBaselineLayout | |
| ViewPrintFormatter | |
| VoiceOverStatusChanged |
Los desarrolladores no deben usar esta propiedad en desuso. Los desarrolladores deben usar "VoiceOverStatusDidChangeNotification" en su lugar. |
| VoiceOverStatusDidChangeNotification |
Constante de notificación para VoiceOverStatusDidChange |
| WidthAnchor | |
| Window | |
| Zone | (Heredado de NSObject) |
Métodos
Eventos
| Nombre | Description |
|---|---|
| AnimationWillEnd |
Este evento se genera cuando finalizan las animaciones. |
| AnimationWillStart |
Este evento se genera cuando se inician las animaciones. |