UIView Classe
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
[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
- Herança
- Derivado
- Atributos
- Implementações
-
ICALayerDelegate INSCoding INativeObject IEnumerable IDisposable IUIAccessibilityIdentification IUIAppearance IUIAppearanceContainer IUICoordinateSpace IUIDynamicItem IUIFocusEnvironment IUIFocusItem IUIFocusItemContainer IUILargeContentViewerItem IUIPopoverPresentationControllerSourceItem IUITraitChangeObservable IUITraitEnvironment
Construtores
| Nome | Description |
|---|---|
| UIView() |
Cria um novo UIView com valores padrão. |
| UIView(CGRect) | |
| UIView(NativeHandle) |
Um construtor usado ao criar representações gerenciadas de objetos não gerenciados. Chamado pelo runtime. |
| UIView(NSCoder) |
Um construtor que inicializa o objeto dos dados armazenados no objeto unarchiver. |
| UIView(NSObjectFlag) |
Construtor para chamar classes derivadas para ignorar a inicialização e apenas alocar o objeto. |
Propriedades
| Nome | Description |
|---|---|
| AccessibilityActivationPoint | |
| AccessibilityAssistiveTechnologyFocusedIdentifiers | (Herdado de UIResponder) |
| AccessibilityAttributedHint | |
| AccessibilityAttributedLabel | |
| AccessibilityAttributedUserInputLabels | |
| AccessibilityAttributedValue | |
| AccessibilityCustomActions | (Herdado de UIResponder) |
| AccessibilityDirectTouchOptions | |
| AccessibilityDragSourceDescriptors | (Herdado de UIResponder) |
| AccessibilityDropPointDescriptors | (Herdado de UIResponder) |
| AccessibilityElementsHidden | |
| AccessibilityExpandedStatus | |
| AccessibilityFrame | |
| AccessibilityHeaderElements | |
| AccessibilityHint | |
| AccessibilityIdentifier |
Identifica |
| AccessibilityIgnoresInvertColors | |
| AccessibilityLabel | |
| AccessibilityLanguage | |
| AccessibilityNavigationStyle | |
| AccessibilityPath | |
| AccessibilityRespondsToUserInteraction | |
| AccessibilityTextualContext | |
| AccessibilityTraits | |
| AccessibilityUserInputLabels | |
| AccessibilityValue | |
| AccessibilityViewIsModal | |
| ActivityItemsConfiguration | (Herdado de UIResponder) |
| AlignmentRectInsets | |
| Alpha | |
| AnchorPoint | |
| AnimationsEnabled | |
| AnnouncementDidFinishNotification |
Constante de notificação para AnnouncementDidFinish |
| AnnouncementNotification |
Obtém a notificação postada por um aplicativo informando que um comunicado requer tecnologia adaptativa. |
| Appearance |
Propriedade fortemente tipada que retorna a classe UIAppearance para essa classe. |
| AppliedContentSizeCategoryLimitsDescription | |
| AssistiveTechnologyKey |
Constante de notificação para AssistiveTechnologyKey |
| AssistiveTouchStatusDidChangeNotification |
Constante de notificação para AssistiveTouchStatusDidChange |
| AutoresizingMask | |
| AutosizesSubviews | |
| BackgroundColor |
A cor usada para a tela de fundo. |
| BoldTextStatusDidChangeNotification |
Constante de notificação para BoldTextStatusDidChange |
| BottomAnchor | |
| Bounds | |
| ButtonShapesEnabledStatusDidChangeNotification |
Constante de notificação para ButtonShapesEnabledStatusDidChange |
| CanBecomeFirstResponder | (Herdado de UIResponder) |
| CanBecomeFocused | |
| CanResignFirstResponder | (Herdado de UIResponder) |
| Center | |
| CenterXAnchor | |
| CenterYAnchor | |
| Class | (Herdado de NSObject) |
| ClassHandle |
O identificador de classe Objective-C desta classe. |
| ClearsContextBeforeDrawing | |
| ClipsToBounds | |
| ClosedCaptioningStatusDidChangeNotification |
Constante de notificação para ClosedCaptioningStatusDidChange |
| CollisionBoundingPath |
Retorna o caminho fechado usado para detecção de colisão. |
| CollisionBoundsType |
Retorna um valor que informa como os limites de colisão são especificados. |
| Constraints | |
| ContentMode | |
| ContentScaleFactor | |
| ContentStretch | |
| CoordinateSpace |
Obtém a implementação de espaço de coordenadas. |
| CornerConfiguration | |
| DarkerSystemColorsStatusDidChangeNotification |
Constante de notificação para DarkerSystemColorsStatusDidChange |
| DebugDescription | (Herdado de NSObject) |
| Description | (Herdado de NSObject) |
| DirectionalLayoutMargins | |
| EditingInteractionConfiguration | (Herdado de UIResponder) |
| EffectiveUserInterfaceLayoutDirection | |
| ElementFocusedNotification |
Constante de notificação para ElementFocused |
| ExclusiveTouch |
Restringe a entrega de eventos a esse modo de exibição. |
| FirstBaselineAnchor | |
| Focused |
Se o UIView modo de exibição está focado. |
| FocusedElementKey |
Constante de notificação para FocusedElementKey |
| FocusEffect | |
| FocusGroupIdentifier | |
| FocusGroupPriority | |
| FocusItemContainer |
Obtém o contêiner que gerencia as informações de foco para itens de foco filho. |
| FocusItemDeferralMode | |
| Frame | |
| GestureRecognizers | |
| GrayscaleStatusDidChangeNotification |
Constante de notificação para GrayscaleStatusDidChange |
| GuidedAccessStatusDidChangeNotification |
Constante de notificação para GuidedAccessStatusDidChange |
| Handle |
Manipule (ponteiro) para a representação de objeto não gerenciado. (Herdado de NSObject) |
| HasAmbiguousLayout | |
| HearingDevicePairedEarDidChangeNotification |
Constante de notificação para HearingDevicePairedEarDidChange |
| HeightAnchor | |
| Hidden |
Especifica se as UIView exibições são exibidas ou não. |
| HoverStyle | |
| InheritedAnimationDuration | |
| InputAccessoryView | (Herdado de UIResponder) |
| InputAccessoryViewController | (Herdado de UIResponder) |
| InputAssistantItem | (Herdado de UIResponder) |
| InputView | (Herdado de UIResponder) |
| InputViewController | (Herdado de UIResponder) |
| InsetsLayoutMarginsFromSafeArea | |
| Interactions | |
| IntrinsicContentSize | |
| InvertColorsStatusDidChangeNotification |
Constante de notificação para InvertColorsStatusDidChange |
| IsAccessibilityElement | |
| IsDirectBinding |
Obtém ou define um valor que indica se essa instância usa associação Objective-C direta. (Herdado de NSObject) |
| IsFirstResponder | (Herdado de UIResponder) |
| IsProxy | (Herdado de NSObject) |
| IsTransparentFocusItem | |
| KeyboardLayoutGuide | |
| KeyCommands | (Herdado de UIResponder) |
| LargeContentImage | |
| LargeContentImageInsets | |
| LargeContentTitle | |
| LastBaselineAnchor | |
| Layer | |
| LayoutChangedNotification |
Obtém a notificação postada por um aplicativo de que o layout de uma tela foi alterado. |
| LayoutGuides | |
| LayoutMargins | |
| LayoutMarginsGuide | |
| LeadingAnchor | |
| LeftAnchor | |
| MaskView | |
| MaximumContentSizeCategory | |
| MinimumContentSizeCategory | |
| MonoAudioStatusDidChangeNotification |
Constante de notificação para MonoAudioStatusDidChange |
| MotionEffects | |
| MultipleTouchEnabled |
Controla se o UIView pode lidar com eventos multitouch. |
| NextResponder | (Herdado de UIResponder) |
| NoIntrinsicMetric |
Representa o valor associado à constante UIViewNoIntrinsicMetric |
| NotificationSwitchControlIdentifier |
Constante de notificação para NotificationSwitchContr |
| NotificationVoiceOverIdentifier |
Constante de notificação para NotificationVoiceOv |
| OnOffSwitchLabelsDidChangeNotification |
Constante de notificação para OnOffSwitchLabelsDidChange |
| Opaque |
Determina se a exibição é opaca ou não. |
| OverrideUserInterfaceStyle | |
| PageScrolledNotification |
Obtém a notificação postada por um aplicativo que uma ação de rolagem terminou. |
| ParentFocusEnvironment |
Obtém o ambiente de foco pai. |
| PasteConfiguration |
O UIPasteConfiguration suporte por |
| PauseAssistiveTechnologyNotification |
Pausa as notificações de tecnologia adaptativa. |
| PreferredFocusedView |
Caso contrário |
| PreferredFocusEnvironments |
Obtém a lista de ambientes de foco, ordenados por prioridade, que o ambiente prefere ao atualizar o foco. |
| PrefersCrossFadeTransitionsStatusDidChangeNotification |
Constante de notificação para PrefersCrossFadeTransitionsStatusDidChange |
| PreservesSuperviewLayoutMargins | |
| ReadableContentGuide | |
| ReduceMotionStatusDidChangeNotification |
Constante de notificação para ReduceMotionStatusDidChange |
| ReduceTransparencyStatusDidChangeNotification |
Constante de notificação para ReduceTransparencyStatusDidChange |
| RestorationIdentifier | |
| ResumeAssistiveTechnologyNotification |
Retoma as notificações de tecnologia adaptativa. |
| RetainCount | (Herdado de NSObject) |
| RightAnchor | |
| SafeAreaInsets | |
| SafeAreaLayoutGuide | |
| ScalesLargeContentImage | |
| ScreenChangedNotification |
Obtém a notificação postada por um aplicativo que um novo modo de exibição aparece que inclui uma parte principal da tela. |
| Self | (Herdado de NSObject) |
| SemanticContentAttribute | |
| ShakeToUndoDidChangeNotification |
Constante de notificação para ShakeToUndoDidChange |
| ShouldDifferentiateWithoutColorDidChangeNotification |
Constante de notificação para ShouldDifferentiateWithoutColorDidChange |
| ShouldGroupAccessibilityChildren | |
| ShowsLargeContentViewer | |
| SpeakScreenStatusDidChangeNotification |
Constante de notificação para SpeakScreenStatusDidChange |
| SpeakSelectionStatusDidChangeNotification |
Constante de notificação para SpeakSelectionStatusDidChange |
| SpeechAttributeAnnouncementPriority |
Representa o valor associado à constante 'UIAccessibilitySpeechAttributeAnnouncementPriority'. |
| SpeechAttributeIpaNotation |
Retorna a notação IPA para a cadeia de caracteres atribuída à acessibilidade. |
| SpeechAttributeLanguage |
Obtém um código de idioma BCP-47. |
| SpeechAttributePitch |
Obtém o valor de 0,0 a 2,0 que determina o tom de uma cadeia de caracteres falada. |
| SpeechAttributePunctuation |
Obtém um valor a ser interpretado como um |
| SpeechAttributeQueueAnnouncement |
Chave para a opção que o texto falado interrompe o conteúdo falado existente. |
| SpeechAttributeSpellOut |
Representa o valor associado à constante 'UIAccessibilitySpeechAttributeSpellOut'. |
| Subviews | |
| Superclass | (Herdado de NSObject) |
| SuperHandle |
Identificador usado para representar os métodos na classe base para isso NSObject. (Herdado de NSObject) |
| Superview | |
| SwitchControlStatusDidChangeNotification |
Constante de notificação para SwitchControlStatusDidChange |
| Tag | |
| TextAttributeContext |
Representa o valor associado à constante 'UIAccessibilityTextAttributeContext'. |
| TextAttributeCustom |
Chave para a opção de que os atributos personalizados sejam aplicados ao texto de acessibilidade. |
| TextAttributeHeadingLevel |
Chave para a opção do nível de título do texto de acessibilidade. |
| TextInputContextIdentifier | (Herdado de UIResponder) |
| TextInputMode | (Herdado de UIResponder) |
| TintAdjustmentMode | |
| TintColor |
A cor usada para tinting. |
| TopAnchor | |
| TouchBar | (Herdado de UIResponder) |
| TrailingAnchor | |
| TraitAdjustable |
Obsoleto.
Obtém uma característica que permite o ajuste contínuo de um elemento de acessibilidade por meio de um intervalo de valores. |
| TraitAllowsDirectInteraction |
Obsoleto.
Obtém uma característica que permite interação direta de toque para os usuários. |
| TraitButton |
Obsoleto.
Obtém uma característica que indica que o |
| TraitCausesPageTurn |
Obsoleto.
Obtém uma característica que indica que o |
| TraitCollection |
Obtém a coleção de características que descreve o ambiente. |
| TraitHeader |
Obsoleto.
Obtém uma característica que indica que o |
| TraitImage |
Obsoleto.
Obtém uma característica que indica que o |
| TraitKeyboardKey |
Obsoleto.
Obtém uma característica que indica que o |
| TraitLink |
Obsoleto.
Obtém uma característica que indica que o |
| TraitNone |
Obsoleto.
Obtém uma característica que indica que o |
| TraitNotEnabled |
Obsoleto.
Obtém uma característica que indica que o |
| TraitOverrides | |
| TraitPlaysSound |
Obsoleto.
Obtém uma característica que indica que |
| TraitSearchField |
Obsoleto.
Obtém uma característica que indica que o |
| TraitSelected |
Obsoleto.
Obtém uma característica que indica que o |
| TraitStartsMediaSession |
Obsoleto.
Obtém uma característica que indica que o |
| TraitStaticText |
Obsoleto.
Obtém uma característica que indica que o |
| TraitSummaryElement |
Obsoleto.
Obtém uma característica que fornece informações resumidas quando um aplicativo é iniciado. |
| TraitTabBar |
Obsoleto.
Representa o valor associado à constante 'UIAccessibilityTraitTabBar'. |
| TraitUpdatesFrequently |
Obsoleto.
Obtém uma característica que indica que o |
| Transform | |
| Transform3D | |
| TranslatesAutoresizingMaskIntoConstraints | |
| UILayoutFittingCompressedSize |
Representa o valor associado à constante UILayoutFittingCompressedSize |
| UILayoutFittingExpandedSize |
Representa o valor associado à constante UILayoutFittingExpandedSize |
| UndoManager | (Herdado de UIResponder) |
| UnfocusedElementKey |
Constante de notificação para UnfocusedElementKey |
| UserActivity | (Herdado de UIResponder) |
| UserInteractionEnabled |
Determina se os eventos de entrada são processados por esse modo de exibição. |
| VideoAutoplayStatusDidChangeNotification |
Constante de notificação para VideoAutoplayStatusDidChange |
| ViewForBaselineLayout | |
| ViewForFirstBaselineLayout | |
| ViewForLastBaselineLayout | |
| ViewPrintFormatter | |
| VoiceOverStatusChanged |
Os desenvolvedores não devem usar essa propriedade preterida. Em vez disso, os desenvolvedores devem usar 'VoiceOverStatusDidChangeNotification'. |
| VoiceOverStatusDidChangeNotification |
Constante de notificação para VoiceOverStatusDidChange |
| WidthAnchor | |
| Window | |
| Zone | (Herdado de NSObject) |
Métodos
Eventos
| Nome | Description |
|---|---|
| AnimationWillEnd |
Esse evento é gerado quando as animações serão encerradas. |
| AnimationWillStart |
Esse evento é gerado quando as animações serão iniciadas. |