语言

UIScrollView 类

定义

[Foundation.Register("UIScrollView", true)]
public class UIScrollView : UIKit.UIView, IDisposable, UIKit.IUIFocusItemScrollableContainer
[<Foundation.Register("UIScrollView", true)>]
type UIScrollView = class
    inherit UIView
    interface IUIFocusItemContainer
    interface INativeObject
    interface IDisposable
    interface IUIFocusItemScrollableContainer
继承
派生
特性
实现

构造函数

名称 说明
UIScrollView()

UIScrollView使用默认值创建新项。

UIScrollView(CGRect)
UIScrollView(NativeHandle)

创建非托管对象的托管表示形式时使用的构造函数。 由运行时调用。

UIScrollView(NSCoder)

一个构造函数,用于从存储在 unarchiver 对象中的数据初始化对象。

UIScrollView(NSObjectFlag)

要调用派生类的构造函数,以跳过初始化,并仅分配对象。

属性

名称 说明
AccessibilityActivationPoint (继承自 UIView)
AccessibilityAssistiveTechnologyFocusedIdentifiers (继承自 UIResponder)
AccessibilityAttributedHint (继承自 UIView)
AccessibilityAttributedLabel (继承自 UIView)
AccessibilityAttributedUserInputLabels (继承自 UIView)
AccessibilityAttributedValue (继承自 UIView)
AccessibilityCustomActions (继承自 UIResponder)
AccessibilityDirectTouchOptions (继承自 UIView)
AccessibilityDragSourceDescriptors (继承自 UIResponder)
AccessibilityDropPointDescriptors (继承自 UIResponder)
AccessibilityElementsHidden (继承自 UIView)
AccessibilityExpandedStatus (继承自 UIView)
AccessibilityFrame (继承自 UIView)
AccessibilityHeaderElements (继承自 UIView)
AccessibilityHint (继承自 UIView)
AccessibilityIdentifier

为了辅助功能,唯一标识 this 。

(继承自 UIView)
AccessibilityIgnoresInvertColors (继承自 UIView)
AccessibilityLabel (继承自 UIView)
AccessibilityLanguage (继承自 UIView)
AccessibilityNavigationStyle (继承自 UIView)
AccessibilityPath (继承自 UIView)
AccessibilityRespondsToUserInteraction (继承自 UIView)
AccessibilityTextualContext (继承自 UIView)
AccessibilityTraits (继承自 UIView)
AccessibilityUserInputLabels (继承自 UIView)
AccessibilityValue (继承自 UIView)
AccessibilityViewIsModal (继承自 UIView)
ActivityItemsConfiguration (继承自 UIResponder)
AdjustedContentInset
AlignmentRectInsets (继承自 UIView)
AllowsKeyboardScrolling
Alpha (继承自 UIView)
AlwaysBounceHorizontal
AlwaysBounceVertical
AnchorPoint (继承自 UIView)
Appearance

返回此类的 UIAppearance 类的强类型属性。

AppliedContentSizeCategoryLimitsDescription (继承自 UIView)
AutomaticallyAdjustsScrollIndicatorInsets
AutoresizingMask (继承自 UIView)
AutosizesSubviews (继承自 UIView)
BackgroundColor

用于背景的颜色。

(继承自 UIView)
BottomAnchor (继承自 UIView)
BottomEdgeEffect
Bounces
BouncesHorizontally
BouncesVertically
BouncesZoom
Bounds (继承自 UIView)
CanBecomeFirstResponder (继承自 UIResponder)
CanBecomeFocused (继承自 UIView)
CanCancelContentTouches
CanResignFirstResponder (继承自 UIResponder)
Center (继承自 UIView)
CenterXAnchor (继承自 UIView)
CenterYAnchor (继承自 UIView)
Class (继承自 NSObject)
ClassHandle

此类的 Objective-C 类句柄。

ClearsContextBeforeDrawing (继承自 UIView)
ClipsToBounds (继承自 UIView)
CollisionBoundingPath

返回用于碰撞检测的封闭路径。

(继承自 UIView)
CollisionBoundsType

返回一个值,该值指示如何指定冲突边界。

(继承自 UIView)
Constraints (继承自 UIView)
ContentAlignmentPoint
ContentInset
ContentInsetAdjustmentBehavior
ContentLayoutGuide
ContentMode (继承自 UIView)
ContentOffset
ContentScaleFactor (继承自 UIView)
ContentSize
ContentStretch (继承自 UIView)
CoordinateSpace

获取坐标空间实现。

CornerConfiguration (继承自 UIView)
DebugDescription (继承自 NSObject)
Decelerating

如果此属性返回 true,则滚动仍在滚动视图中发生,但用户未拖动手指。

DecelerationRate
DecelerationRateFast

表示与常量 UIScrollViewDecelerationRateFast 关联的值

DecelerationRateNormal

表示与常量 UIScrollViewDecelerationRateNormal 关联的值

DelaysContentTouches
Delegate

充当类委托的 UIKit.IUIScrollViewDelegate 模型类的实例。

Description (继承自 NSObject)
DirectionalLayoutMargins (继承自 UIView)
DirectionalLockEnabled

如果用户 true开始在一个轴(即水平)中滚动,则滚动视图将禁用在其他轴(即垂直)中滚动。

DirectionalPressGestureRecognizer
Dragging

返回 true 内容是否已开始滚动。 Read-only.

EditingInteractionConfiguration (继承自 UIResponder)
EffectiveUserInterfaceLayoutDirection (继承自 UIView)
ExclusiveTouch

将事件传送限制为此视图。

(继承自 UIView)
FirstBaselineAnchor (继承自 UIView)
Focused

UIView是否为重点视图。

(继承自 UIView)
FocusEffect (继承自 UIView)
FocusGroupIdentifier (继承自 UIView)
FocusGroupPriority (继承自 UIView)
FocusItemContainer

获取用于管理子焦点项的焦点信息的容器。

(继承自 UIView)
FocusItemDeferralMode (继承自 UIView)
Frame (继承自 UIView)
FrameLayoutGuide
GestureRecognizers (继承自 UIView)
Handle

处理(指针)到非托管对象表示形式。

(继承自 NSObject)
HasAmbiguousLayout (继承自 UIView)
HeightAnchor (继承自 UIView)
Hidden

指定是否 UIView 显示。

(继承自 UIView)
HorizontalScrollIndicatorInsets
HoverStyle (继承自 UIView)
IndexDisplayMode
IndicatorStyle
InputAccessoryView (继承自 UIResponder)
InputAccessoryViewController (继承自 UIResponder)
InputAssistantItem (继承自 UIResponder)
InputView (继承自 UIResponder)
InputViewController (继承自 UIResponder)
InsetsLayoutMarginsFromSafeArea (继承自 UIView)
Interactions (继承自 UIView)
IntrinsicContentSize (继承自 UIView)
IsAccessibilityElement (继承自 UIView)
IsDirectBinding

获取或设置一个值,该值指示此实例是否使用直接 Objective-C 绑定。

(继承自 NSObject)
IsFirstResponder (继承自 UIResponder)
IsProxy (继承自 NSObject)
IsTransparentFocusItem (继承自 UIView)
KeyboardDismissMode
KeyboardLayoutGuide (继承自 UIView)
KeyCommands (继承自 UIResponder)
LargeContentImage (继承自 UIView)
LargeContentImageInsets (继承自 UIView)
LargeContentTitle (继承自 UIView)
LastBaselineAnchor (继承自 UIView)
Layer (继承自 UIView)
LayoutGuides (继承自 UIView)
LayoutMargins (继承自 UIView)
LayoutMarginsGuide (继承自 UIView)
LeadingAnchor (继承自 UIView)
LeftAnchor (继承自 UIView)
LeftEdgeEffect
MaskView (继承自 UIView)
MaximumContentSizeCategory (继承自 UIView)
MaximumZoomScale
MinimumContentSizeCategory (继承自 UIView)
MinimumZoomScale
MotionEffects (继承自 UIView)
MultipleTouchEnabled

控制 UIView 是否可以处理多点触控事件。

(继承自 UIView)
NextResponder (继承自 UIResponder)
Opaque

确定视图是否不透明。

(继承自 UIView)
OverrideUserInterfaceStyle (继承自 UIView)
PagingEnabled

如果 true 随后滚动将在内容视图的分页边界上停止;一次滚动将发生一个页面。

PanGestureRecognizer
ParentFocusEnvironment

获取父焦点环境。

(继承自 UIView)
PasteConfiguration

对象 UIPasteConfiguration 支持 this 的对象。

(继承自 UIResponder)
PinchGestureRecognizer
PreferredFocusedView

如果不是 null,则表示应默认接收焦点的子级 UIView 。

(继承自 UIView)
PreferredFocusEnvironments

获取按优先级排序的焦点环境列表,环境在更新焦点时首选。

(继承自 UIView)
PreservesSuperviewLayoutMargins (继承自 UIView)
ReadableContentGuide (继承自 UIView)
RefreshControl
RestorationIdentifier (继承自 UIView)
RetainCount (继承自 NSObject)
RightAnchor (继承自 UIView)
RightEdgeEffect
SafeAreaInsets (继承自 UIView)
SafeAreaLayoutGuide (继承自 UIView)
ScalesLargeContentImage (继承自 UIView)
ScrollAnimating
ScrollEnabled

如果设置为 true “,则启用滚动。

ScrollIndicatorInsets
ScrollsToTop
Self (继承自 NSObject)
SemanticContentAttribute (继承自 UIView)
ShouldGroupAccessibilityChildren (继承自 UIView)
ShouldScrollToTop

由对象调用的委托以获取值。

ShowsHorizontalScrollIndicator
ShowsLargeContentViewer (继承自 UIView)
ShowsVerticalScrollIndicator
Subviews (继承自 UIView)
Superclass (继承自 NSObject)
SuperHandle
已过时.

用于表示此 NSObject基类中方法的句柄。

(继承自 NSObject)
Superview (继承自 UIView)
Tag (继承自 UIView)
TextInputContextIdentifier (继承自 UIResponder)
TextInputMode (继承自 UIResponder)
TintAdjustmentMode (继承自 UIView)
TintColor

用于着色的颜色。

(继承自 UIView)
TopAnchor (继承自 UIView)
TopEdgeEffect
TouchBar (继承自 UIResponder)
Tracking

返回 true 用户是否已触摸内容并即将开始滚动。

TrailingAnchor (继承自 UIView)
TraitCollection

获取描述环境的特征集合。

(继承自 UIView)
TraitOverrides (继承自 UIView)
TransfersHorizontalScrollingToParent
TransfersVerticalScrollingToParent
Transform (继承自 UIView)
Transform3D (继承自 UIView)
TranslatesAutoresizingMaskIntoConstraints (继承自 UIView)
UndoManager (继承自 UIResponder)
UserActivity (继承自 UIResponder)
UserInteractionEnabled

确定此视图是否处理输入事件。

(继承自 UIView)
VerticalScrollIndicatorInsets
ViewForBaselineLayout (继承自 UIView)
ViewForFirstBaselineLayout (继承自 UIView)
ViewForLastBaselineLayout (继承自 UIView)
ViewForZoomingInScrollView

由对象调用的委托以获取值。

ViewPrintFormatter (继承自 UIView)
VisibleSize

获取 scrollview 容器的可见大小。

WeakDelegate
WidthAnchor (继承自 UIView)
Window (继承自 UIView)
Zone (继承自 NSObject)
ZoomAnimating
ZoomBouncing

返回 true 滚动视图是否回退到指定MinimumZoomScale 和 MaximumZoomScale指定的缩放缩放限制。 Read-only.

Zooming

如果 true 内容视图正在放大或缩小,则返回。只读。

ZoomScale

方法

名称 说明
AccessibilityActivate() (继承自 UIView)
AccessibilityDecrement() (继承自 UIResponder)
AccessibilityElementDidBecomeFocused() (继承自 UIResponder)
AccessibilityElementDidLoseFocus() (继承自 UIResponder)
AccessibilityElementIsFocused() (继承自 UIResponder)
AccessibilityIncrement() (继承自 UIResponder)
AccessibilityPerformEscape() (继承自 UIResponder)
AccessibilityPerformMagicTap() (继承自 UIResponder)
AccessibilityScroll(UIAccessibilityScrollDirection) (继承自 UIResponder)
ActionForLayer(CALayer, String) (继承自 UIView)
Add(UIView)

这是一 AddSubview(UIView)个别名,但使用 Add 模式,因为它允许 C# 3.0 构造在创建对象后添加子视图。

(继承自 UIView)
AddConstraint(NSLayoutConstraint) (继承自 UIView)
AddConstraints(NSLayoutConstraint[]) (继承自 UIView)
AddGestureRecognizer(UIGestureRecognizer) (继承自 UIView)
AddInteraction(IUIInteraction) (继承自 UIView)
AddLayoutGuide(UILayoutGuide) (继承自 UIView)
AddMotionEffect(UIMotionEffect) (继承自 UIView)
AddObserver(NSObject, NSString, NSKeyValueObservingOptions, IntPtr) (继承自 NSObject)
AddObserver(NSObject, String, NSKeyValueObservingOptions, IntPtr) (继承自 NSObject)
AddObserver(NSString, NSKeyValueObservingOptions, Action<NSObservedChange>)

注册对象以使用任意方法在外部观察。

(继承自 NSObject)
AddObserver(String, NSKeyValueObservingOptions, Action<NSObservedChange>)

注册对象以使用任意方法在外部观察。

(继承自 NSObject)
AddSubview(UIView) (继承自 UIView)
AddSubviews(UIView[])

将各种视图添加到 UIView 的便利例程。

(继承自 UIView)
AdjustedContentInsetDidChange()
AlignCenter(NSObject) (继承自 UIResponder)
AlignJustified(NSObject) (继承自 UIResponder)
AlignLeft(NSObject) (继承自 UIResponder)
AlignmentRectForFrame(CGRect) (继承自 UIView)
AlignRight(NSObject) (继承自 UIResponder)
AppearanceWhenContainedIn(Type[])

当视图托管在指定的层次结构中时,返回此类实例的强类型 UIAppearance 。

AwakeFromNib() (继承自 NSObject)
BecomeFirstResponder() (继承自 UIResponder)
BeginInvokeOnMainThread(Action)

在主 UI 线程上异步调用指定的操作。

(继承自 NSObject)
BeginInvokeOnMainThread(Selector, NSObject)

在主 UI 线程上异步调用指定的代码。

(继承自 NSObject)
BringSubviewToFront(UIView) (继承自 UIView)
BuildMenu(IUIMenuBuilder) (继承自 UIResponder)
CanPaste(NSItemProvider[])

如果响应者可以从指定的项提供程序粘贴,则返回 true 。

(继承自 UIResponder)
CanPerform(Selector, NSObject) (继承自 UIResponder)
Capture(Boolean)

执行屏幕 UIView捕获 。

(继承自 UIView)
CaptureTextFromCamera(NSObject) (继承自 UIResponder)
ConformsToProtocol(NativeHandle) (继承自 NSObject)
ContentCompressionResistancePriority(UILayoutConstraintAxis) (继承自 UIView)
ContentHuggingPriority(UILayoutConstraintAxis) (继承自 UIView)
ConvertPointFromCoordinateSpace(CGPoint, IUICoordinateSpace) (继承自 UIView)
ConvertPointFromView(CGPoint, UIView) (继承自 UIView)
ConvertPointToCoordinateSpace(CGPoint, IUICoordinateSpace) (继承自 UIView)
ConvertPointToView(CGPoint, UIView) (继承自 UIView)
ConvertRectFromCoordinateSpace(CGRect, IUICoordinateSpace) (继承自 UIView)
ConvertRectFromView(CGRect, UIView) (继承自 UIView)
ConvertRectToCoordinateSpace(CGRect, IUICoordinateSpace) (继承自 UIView)
ConvertRectToView(CGRect, UIView) (继承自 UIView)
Copy() (继承自 NSObject)
Copy(NSObject) (继承自 UIResponder)
CreateTouchBar() (继承自 UIResponder)
Cut(NSObject) (继承自 UIResponder)
DangerousAutorelease()

对此对象调用“autorelease”选择器。

(继承自 NSObject)
DangerousRelease()

对此对象调用“release”选择器。

(继承自 NSObject)
DangerousRetain()

对此对象调用“保留”选择器。

(继承自 NSObject)
DecodeRestorableState(NSCoder) (继承自 UIView)
DecreaseSize(NSObject) (继承自 UIResponder)
Delete(NSObject) (继承自 UIResponder)
DidChange(NSKeyValueChange, NSIndexSet, NSString) (继承自 NSObject)
DidChange(NSString, NSKeyValueSetMutationKind, NSSet) (继承自 NSObject)
DidChangeValue(String) (继承自 NSObject)
DidHintFocusMovement(UIFocusMovementHint)

当焦点更改可能很快发生时调用。

(继承自 UIView)
DidUpdateFocus(UIFocusUpdateContext, UIFocusAnimationCoordinator)

焦点更改为新的 UIView委托方法后不久调用。

(继承自 UIView)
DisplayLayer(CALayer) (继承自 UIView)
Dispose()

释放对象使用 NSObject 的资源。

(继承自 NSObject)
Dispose(Boolean)

释放此对象使用的资源。

DoesNotRecognizeSelector(Selector) (继承自 NSObject)
Draw(CGRect) (继承自 UIView)
DrawLayer(CALayer, CGContext) (继承自 UIView)
DrawRect(CGRect, UIViewPrintFormatter) (继承自 UIView)
DrawViewHierarchy(CGRect, Boolean) (继承自 UIView)
Duplicate(NSObject) (继承自 UIResponder)
EncodeRestorableState(NSCoder) (继承自 UIView)
EncodeTo(NSCoder)

使用提供的编码器对对象的状态进行编码。

(继承自 UIView)
Equals(NSObject)

确定指定的 NSObject 值是否等于当前 NSObject。

(继承自 NSObject)
Equals(Object)

确定指定的对象是否等于当前 NSObject对象。

(继承自 NSObject)
ExchangeSubview(IntPtr, IntPtr)

此方法交换数组中UIView两Subviews个 s 的索引。

(继承自 UIView)
ExerciseAmbiguityInLayout() (继承自 UIView)
Export(NSObject) (继承自 UIResponder)
Find(NSObject) (继承自 UIResponder)
FindAndReplace(NSObject) (继承自 UIResponder)
FindNext(NSObject) (继承自 UIResponder)
FindPrevious(NSObject) (继承自 UIResponder)
FlashScrollIndicators()
FrameForAlignmentRect(CGRect) (继承自 UIView)
GestureRecognizerShouldBegin(UIGestureRecognizer) (继承自 UIView)
GetAppearance(UITraitCollection, Type[])

获取其外观代理UIScrollView.UIScrollViewAppearance。UIScrollView

GetAppearance(UITraitCollection)

获取其外观代理UIScrollView.UIScrollViewAppearance。UIScrollView

GetAppearance<T>()

获取子类的外观UIScrollView.UIScrollViewAppearance代理UIScrollView。

GetAppearance<T>(UITraitCollection, Type[])

获取子类的外观UIScrollView.UIScrollViewAppearance代理UIScrollView。

GetAppearance<T>(UITraitCollection)

获取子类的外观UIScrollView.UIScrollViewAppearance代理UIScrollView。

GetConstraintsAffectingLayout(UILayoutConstraintAxis) (继承自 UIView)
GetDictionaryOfValuesFromKeys(NSString[]) (继承自 NSObject)
GetDirectionalEdgeInsets(UIViewLayoutRegion) (继承自 UIView)
GetEdgeInsets(UIViewLayoutRegion) (继承自 UIView)
GetEnumerator()

返回一个枚举器,该枚举器列出此视图中的所有子视图

(继承自 UIView)
GetFocusItems(CGRect)

返回指定矩形内所有子焦点项的列表。

GetFrame(UIView) (继承自 UIView)
GetHashCode()

为当前实例生成哈希代码。

(继承自 NSObject)
GetLayoutGuide(UIViewLayoutRegion) (继承自 UIView)
GetMethodForSelector(Selector) (继承自 NSObject)
GetNativeHash() (继承自 NSObject)
GetProvider(UIDeferredMenuElement) (继承自 UIResponder)
GetReservedRegions(UIViewReservedRegionKind, UIViewReservedRegionQueryOptions) (继承自 UIView)
GetReservedRegions(UIViewReservedRegionKind) (继承自 UIView)
GetSoundIdentifier(UIFocusUpdateContext) (继承自 UIView)
GetTargetForAction(Selector, NSObject) (继承自 UIResponder)
HitTest(CGPoint, UIEvent) (继承自 UIView)
IncreaseSize(NSObject) (继承自 UIResponder)
Init()

通过调用 Objective-C init 方法初始化对象。

(继承自 NSObject)
InitializeHandle(NativeHandle, String, Boolean)

Handle使用本机初始值设定项的结果初始化属性。

(继承自 NSObject)
InitializeHandle(NativeHandle, String) (继承自 NSObject)
InitializeHandle(NativeHandle) (继承自 NSObject)
InsertSubview(UIView, IntPtr)

将指定子视图作为此视图的子视图插入指定位置。

(继承自 UIView)
InsertSubviewAbove(UIView, UIView) (继承自 UIView)
InsertSubviewBelow(UIView, UIView) (继承自 UIView)
InvalidateIntrinsicContentSize() (继承自 UIView)
Invoke(Action, Double)

在指定的延迟后调用指定的操作。

(继承自 NSObject)
Invoke(Action, TimeSpan)

在指定的延迟后调用指定的操作。

(继承自 NSObject)
InvokeOnMainThread(Action)

在主 UI 线程上同步调用指定的操作。

(继承自 NSObject)
InvokeOnMainThread(Selector, NSObject)

在主 UI 线程上同步调用指定的代码。

(继承自 NSObject)
IsDescendantOfView(UIView) (继承自 UIView)
IsEqual(NSObject) (继承自 NSObject)
IsKindOfClass(Class) (继承自 NSObject)
IsMemberOfClass(Class) (继承自 NSObject)
LayoutIfNeeded() (继承自 UIView)
LayoutMarginsDidChange() (继承自 UIView)
LayoutSublayersOfLayer(CALayer) (继承自 UIView)
LayoutSubviews() (继承自 UIView)
MakeTextWritingDirectionLeftToRight(NSObject) (继承自 UIResponder)
MakeTextWritingDirectionRightToLeft(NSObject) (继承自 UIResponder)
MarkDirty()

将常规对等对象(IsDirectBinding 为 true)提升为 toggleref 对象。

(继承自 NSObject)
MotionBegan(UIEventSubtype, UIEvent) (继承自 UIResponder)
MotionCancelled(UIEventSubtype, UIEvent) (继承自 UIResponder)
MotionEnded(UIEventSubtype, UIEvent) (继承自 UIResponder)
Move(NSObject) (继承自 UIResponder)
MovedToSuperview() (继承自 UIView)
MovedToWindow() (继承自 UIView)
MutableCopy() (继承自 NSObject)
NeedsUpdateConstraints() (继承自 UIView)
NewFromPasteboard(NSObject) (继承自 UIResponder)
ObserveValue(NSString, NSObject, NSDictionary, IntPtr) (继承自 NSObject)
Paste(NSItemProvider[])

执行粘贴。

(继承自 UIResponder)
Paste(NSObject) (继承自 UIResponder)
PasteAndGo(NSObject) (继承自 UIResponder)
PasteAndMatchStyle(NSObject) (继承自 UIResponder)
PasteAndSearch(NSObject) (继承自 UIResponder)
PerformClose(NSObject) (继承自 UIResponder)
PerformSelector(Selector, NSObject, Double, NSString[]) (继承自 NSObject)
PerformSelector(Selector, NSObject, Double) (继承自 NSObject)
PerformSelector(Selector, NSObject, NSObject) (继承自 NSObject)
PerformSelector(Selector, NSObject) (继承自 NSObject)
PerformSelector(Selector, NSThread, NSObject, Boolean, NSString[]) (继承自 NSObject)
PerformSelector(Selector, NSThread, NSObject, Boolean) (继承自 NSObject)
PerformSelector(Selector) (继承自 NSObject)
PointInside(CGPoint, UIEvent) (继承自 UIView)
PrepareForInterfaceBuilder() (继承自 NSObject)
PressesBegan(NSSet<UIPress>, UIPressesEvent) (继承自 UIResponder)
PressesCancelled(NSSet<UIPress>, UIPressesEvent) (继承自 UIResponder)
PressesChanged(NSSet<UIPress>, UIPressesEvent) (继承自 UIResponder)
PressesEnded(NSSet<UIPress>, UIPressesEvent) (继承自 UIResponder)
Print(NSObject) (继承自 UIResponder)
RegisterForTraitChanges(Action<IUITraitEnvironment,UITraitCollection>, Type[])

注册一个回调处理程序,该处理程序将在指定特征之一发生更改时执行。

(继承自 UIView)
RegisterForTraitChanges(Class[], Action<IUITraitEnvironment,UITraitCollection>) (继承自 UIView)
RegisterForTraitChanges(Class[], NSObject, Selector) (继承自 UIView)
RegisterForTraitChanges(Class[], Selector) (继承自 UIView)
RegisterForTraitChanges(IUITraitDefinition[], Action<IUITraitEnvironment,UITraitCollection>)
已过时.
(继承自 UIView)
RegisterForTraitChanges(IUITraitDefinition[], NSObject, Selector)
已过时.
(继承自 UIView)
RegisterForTraitChanges(IUITraitDefinition[], Selector)
已过时.
(继承自 UIView)
RegisterForTraitChanges(Type[], Action<IUITraitEnvironment,UITraitCollection>)

注册一个回调处理程序,该处理程序将在指定特征之一发生更改时执行。

(继承自 UIView)
RegisterForTraitChanges(Type[], NSObject, Selector)

注册一个选择器,当任何指定的特征发生更改时,将在指定对象上调用该选择器。

(继承自 UIView)
RegisterForTraitChanges(Type[], Selector)

注册一个选择器,当任何指定的特征发生更改时,将在当前对象上调用该选择器。

(继承自 UIView)
RegisterForTraitChanges<T>(Action<IUITraitEnvironment,UITraitCollection>)

注册将在指定特征发生更改时执行的回调处理程序。

(继承自 UIView)
RegisterForTraitChanges<T1,T2,T3,T4>(Action<IUITraitEnvironment,UITraitCollection>)

注册将在任何指定特征发生更改时执行的回调处理程序。

(继承自 UIView)
RegisterForTraitChanges<T1,T2,T3>(Action<IUITraitEnvironment,UITraitCollection>)

注册将在任何指定特征发生更改时执行的回调处理程序。

(继承自 UIView)
RegisterForTraitChanges<T1,T2>(Action<IUITraitEnvironment,UITraitCollection>)

注册将在任何指定特征发生更改时执行的回调处理程序。

(继承自 UIView)
ReloadInputViews() (继承自 UIResponder)
RemoteControlReceived(UIEvent) (继承自 UIResponder)
RemoveConstraint(NSLayoutConstraint) (继承自 UIView)
RemoveConstraints(NSLayoutConstraint[]) (继承自 UIView)
RemoveFromSuperview() (继承自 UIView)
RemoveGestureRecognizer(UIGestureRecognizer) (继承自 UIView)
RemoveInteraction(IUIInteraction) (继承自 UIView)
RemoveLayoutGuide(UILayoutGuide) (继承自 UIView)
RemoveMotionEffect(UIMotionEffect) (继承自 UIView)
RemoveObserver(NSObject, NSString, IntPtr) (继承自 NSObject)
RemoveObserver(NSObject, NSString) (继承自 NSObject)
RemoveObserver(NSObject, String, IntPtr) (继承自 NSObject)
RemoveObserver(NSObject, String) (继承自 NSObject)
Rename(NSObject) (继承自 UIResponder)
ResignFirstResponder() (继承自 UIResponder)
ResizableSnapshotView(CGRect, Boolean, UIEdgeInsets) (继承自 UIView)
RespondsToSelector(Selector) (继承自 NSObject)
RestoreUserActivityState(NSUserActivity) (继承自 UIResponder)
SafeAreaInsetsDidChange() (继承自 UIView)
ScrollRectToVisible(CGRect, Boolean)
Select(NSObject) (继承自 UIResponder)
SelectAll(NSObject) (继承自 UIResponder)
SendSubviewToBack(UIView) (继承自 UIView)
SetContentCompressionResistancePriority(Single, UILayoutConstraintAxis) (继承自 UIView)
SetContentHuggingPriority(Single, UILayoutConstraintAxis) (继承自 UIView)
SetContentOffset(CGPoint, Boolean)
SetEffectiveRadius(UIRectCorner) (继承自 UIView)
SetNeedsDisplay() (继承自 UIView)
SetNeedsDisplayInRect(CGRect) (继承自 UIView)
SetNeedsFocusUpdate()

当活动焦点环境为活动焦点环境时 this ,请求焦点更新,这可能会更改焦点 PreferredFocusedView。 (另 UpdateFocusIfNeeded()请参阅。)

(继承自 UIView)
SetNeedsLayout() (继承自 UIView)
SetNeedsUpdateConstraints() (继承自 UIView)
SetNeedsUpdateProperties() (继承自 UIView)
SetNilValueForKey(NSString) (继承自 NSObject)
SetValueForKey(NSObject, NSString) (继承自 NSObject)
SetValueForKeyPath(NativeHandle, NSString)

将给定键路径标识的属性的值设置为给定值。

(继承自 NSObject)
SetValueForKeyPath(NSObject, NSString) (继承自 NSObject)
SetValueForUndefinedKey(NSObject, NSString) (继承自 NSObject)
SetValuesForKeysWithDictionary(NSDictionary) (继承自 NSObject)
SetZoomScale(NFloat, Boolean)

设置对象内容的规模 UIScrollView 。 (请参阅 ZoomScale)

ShouldUpdateFocus(UIFocusUpdateContext)

在当前对象丢失或接收焦点之前调用。 如果任一焦点环境返回 false,则取消焦点更新。

(继承自 UIView)
ShowWritingTools(NSObject) (继承自 UIResponder)
SizeThatFits(CGSize) (继承自 UIView)
SizeToFit() (继承自 UIView)
SnapshotView(Boolean) (继承自 UIView)
StopScrollingAndZooming()
SubviewAdded(UIView) (继承自 UIView)
SystemLayoutSizeFittingSize(CGSize, Single, Single) (继承自 UIView)
SystemLayoutSizeFittingSize(CGSize) (继承自 UIView)
TintColorDidChange() (继承自 UIView)
ToggleBoldface(NSObject) (继承自 UIResponder)
ToggleInspector(NSObject) (继承自 UIResponder)
ToggleItalics(NSObject) (继承自 UIResponder)
ToggleSidebar(NSObject) (继承自 UIResponder)
ToggleUnderline(NSObject) (继承自 UIResponder)
ToString()

返回当前实例值的字符串表示形式。

(继承自 NSObject)
TouchesBegan(NSSet, UIEvent) (继承自 UIResponder)
TouchesCancelled(NSSet, UIEvent) (继承自 UIResponder)
TouchesEnded(NSSet, UIEvent) (继承自 UIResponder)
TouchesEstimatedPropertiesUpdated(NSSet) (继承自 UIResponder)
TouchesMoved(NSSet, UIEvent) (继承自 UIResponder)
TouchesShouldBegin(NSSet, UIEvent, UIView)
TouchesShouldCancelInContentView(UIView)
TraitCollectionDidChange(UITraitCollection)

描述环境的特征集合已更改。

(继承自 UIView)
UnregisterForTraitChanges(IUITraitChangeRegistration) (继承自 UIView)
UpdateConstraints() (继承自 UIView)
UpdateConstraintsIfNeeded() (继承自 UIView)
UpdateFocusIfNeeded()

如果任何焦点环境有挂起的更新,此方法将强制立即进行焦点更新。 与此方法不同 SetNeedsFocusUpdate(),此方法可能由任何 IUIFocusEnvironment方法调用,无论它当前是否包含焦点。

(继承自 UIView)
UpdateProperties() (继承自 UIView)
UpdatePropertiesIfNeeded() (继承自 UIView)
UpdateTextAttributes(UITextAttributesConversionHandler) (继承自 UIResponder)
UpdateTraitsIfNeeded() (继承自 UIView)
UpdateUserActivityState(NSUserActivity) (继承自 UIResponder)
UseSelectionForFind(NSObject) (继承自 UIResponder)
ValidateCommand(UICommand) (继承自 UIResponder)
ValueForKey(NSString) (继承自 NSObject)
ValueForKeyPath(NSString) (继承自 NSObject)
ValueForUndefinedKey(NSString) (继承自 NSObject)
ViewWithTag(IntPtr)

返回 UIView 由 tag.. 可以返回 null。

(继承自 UIView)
WillChange(NSKeyValueChange, NSIndexSet, NSString) (继承自 NSObject)
WillChange(NSString, NSKeyValueSetMutationKind, NSSet) (继承自 NSObject)
WillChangeValue(String) (继承自 NSObject)
WillDrawLayer(CALayer)

即将绘制时 layer 调用的方法。

(继承自 UIView)
WillMoveToSuperview(UIView) (继承自 UIView)
WillMoveToWindow(UIWindow) (继承自 UIView)
WillRemoveSubview(UIView) (继承自 UIView)
WithScrollIndicatorsShown(Action)
ZoomToRect(CGRect, Boolean)

事件

名称 说明
DecelerationEnded

由对象引发的事件。

DecelerationStarted

由对象引发的事件。

DidChangeAdjustedContentInset

由对象引发的事件。

DidZoom

由对象引发的事件。

DraggingEnded

由对象引发的事件。

DraggingStarted

由对象引发的事件。

ScrollAnimationEnded

由对象引发的事件。

Scrolled

由对象引发的事件。

ScrolledToTop

由对象引发的事件。

WillEndDragging

由对象引发的事件。

ZoomingEnded

由对象引发的事件。

ZoomingStarted

由对象引发的事件。

扩展方法

名称 说明
AccessibilityHitTest(NSObject, CGPoint, UIEvent)
ActionForLayer(ICALayerDelegate, CALayer, String)
AlignCenter(IUIResponderStandardEditActions, NSObject)
AlignJustified(IUIResponderStandardEditActions, NSObject)
AlignLeft(IUIResponderStandardEditActions, NSObject)
AlignRight(IUIResponderStandardEditActions, NSObject)
BrowserAccessibilityDeleteTextAtCursor(NSObject, IntPtr)
BrowserAccessibilityInsertTextAtCursor(NSObject, String)
CanPaste(IUIPasteConfigurationSupporting, NSItemProvider[])

如果响应者可以从指定的项提供程序粘贴,则返回 true 。

Copy(IUIResponderStandardEditActions, NSObject)
Cut(IUIResponderStandardEditActions, NSObject)
DecreaseSize(IUIResponderStandardEditActions, NSObject)
Delete(IUIResponderStandardEditActions, NSObject)
DidHintFocusMovement(IUIFocusItem, UIFocusMovementHint)

当焦点更改可能很快发生时调用。

DisplayLayer(ICALayerDelegate, CALayer)
DrawLayer(ICALayerDelegate, CALayer, CGContext)
Duplicate(IUIResponderStandardEditActions, NSObject)
EndEditing(UIView, Boolean)
Export(IUIResponderStandardEditActions, NSObject)
Find(IUIResponderStandardEditActions, NSObject)
FindAndReplace(IUIResponderStandardEditActions, NSObject)
FindNext(IUIResponderStandardEditActions, NSObject)
FindPrevious(IUIResponderStandardEditActions, NSObject)
GetAccessibilityCustomRotors(NSObject)

获取适合UIAccessibilityCustomRotor对象的对象的数组this。

GetAccessibilityLineEndPositionFromCurrentSelection(NSObject)
GetAccessibilityLineRangeForPosition(NSObject, IntPtr)
GetAccessibilityLineStartPositionFromCurrentSelection(NSObject)
GetAccessibilityNextTextNavigationElement(NSObject)
GetAccessibilityNextTextNavigationElementBlock(NSObject)
GetAccessibilityPreviousTextNavigationElement(NSObject)
GetAccessibilityPreviousTextNavigationElementBlock(NSObject)
GetAccessibilityTextInputResponder(NSObject)
GetAccessibilityTextInputResponderHandler(NSObject)
GetBrowserAccessibilityAttributedValue(NSObject, NSRange)
GetBrowserAccessibilityContainerType(NSObject)
GetBrowserAccessibilityCurrentStatus(NSObject)
GetBrowserAccessibilityDetailsElements(NSObject)
GetBrowserAccessibilityHasDomFocus(NSObject)
GetBrowserAccessibilityImageData(NSObject, NSDictionary)
GetBrowserAccessibilityImageDataSize(NSObject)
GetBrowserAccessibilityIsRequired(NSObject)
GetBrowserAccessibilityKeyboardShortcuts(NSObject)
GetBrowserAccessibilityOrientation(NSObject)
GetBrowserAccessibilityPressedState(NSObject)
GetBrowserAccessibilityRoleDescription(NSObject)
GetBrowserAccessibilitySelectedTextRange(NSObject)
GetBrowserAccessibilitySortDirection(NSObject)
GetBrowserAccessibilityValue(NSObject, NSRange)
GetCollisionBoundingPath(IUIDynamicItem)

返回用于碰撞检测的封闭路径。

GetCollisionBoundsType(IUIDynamicItem)

返回一个值,该值指示如何指定冲突边界。

GetDebugDescription(INSObjectProtocol)
GetFocusEffect(IUIFocusItem)
GetFocusGroupIdentifier(IUIFocusEnvironment)
GetFocusGroupPriority(IUIFocusItem)
GetFocusItemDeferralMode(IUIFocusItem)
GetFrame(IUIPopoverPresentationControllerSourceItem, UIView)
GetHandle(INativeObject)
GetIsTransparentFocusItem(IUIFocusItem)
GetNonNullHandle(INativeObject, String)
GetPencilKitResponderState(UIResponder)
GetPreferredFocusedView(IUIFocusEnvironment)

如果不是 null,则表示应默认接收焦点的子级 UIView 。

GetSoundIdentifier(IUIFocusEnvironment, UIFocusUpdateContext)
IncreaseSize(IUIResponderStandardEditActions, NSObject)
LayoutSublayersOfLayer(ICALayerDelegate, CALayer)
MakeTextWritingDirectionLeftToRight(IUIResponderStandardEditActions, NSObject)
MakeTextWritingDirectionRightToLeft(IUIResponderStandardEditActions, NSObject)
Move(IUIResponderStandardEditActions, NSObject)
NewFromPasteboard(IUIResponderStandardEditActions, NSObject)
Paste(IUIPasteConfigurationSupporting, NSItemProvider[])

执行粘贴。

Paste(IUIResponderStandardEditActions, NSObject)
PasteAndGo(IUIResponderStandardEditActions, NSObject)
PasteAndMatchStyle(IUIResponderStandardEditActions, NSObject)
PasteAndSearch(IUIResponderStandardEditActions, NSObject)
PerformClose(IUIResponderStandardEditActions, NSObject)
Print(IUIResponderStandardEditActions, NSObject)
ProvideImageData(NSObject, IntPtr, UIntPtr, UIntPtr, UIntPtr, UIntPtr, UIntPtr, NSObject)
ProvideImageToMTLTexture(NSObject, IMTLTexture, IMTLCommandBuffer, UIntPtr, UIntPtr, UIntPtr, UIntPtr, NSObject)
RegisterForTraitChanges(IUITraitChangeObservable, Class[], Action<IUITraitEnvironment,UITraitCollection>)
RegisterForTraitChanges(IUITraitChangeObservable, Class[], NSObject, Selector)
RegisterForTraitChanges(IUITraitChangeObservable, Class[], Selector)
RegisterForTraitChanges(IUITraitChangeObservable, IUITraitDefinition[], Action<IUITraitEnvironment,UITraitCollection>)
RegisterForTraitChanges(IUITraitChangeObservable, IUITraitDefinition[], NSObject, Selector)
RegisterForTraitChanges(IUITraitChangeObservable, IUITraitDefinition[], Selector)
Rename(IUIResponderStandardEditActions, NSObject)
Select(IUIResponderStandardEditActions, NSObject)
SelectAll(IUIResponderStandardEditActions, NSObject)
SetAccessibilityCustomRotors(NSObject, UIAccessibilityCustomRotor[])

设置适合UIAccessibilityCustomRotor对象的对象的数组this。

SetAccessibilityNextTextNavigationElement(NSObject, NSObject)
SetAccessibilityNextTextNavigationElementBlock(NSObject, AXObjectReturnBlock)
SetAccessibilityPreviousTextNavigationElement(NSObject, NSObject)
SetAccessibilityPreviousTextNavigationElementBlock(NSObject, AXObjectReturnBlock)
SetAccessibilityTextInputResponder(NSObject, IUITextInput)
SetAccessibilityTextInputResponderHandler(NSObject, UITextInputReturnHandler)
SetBrowserAccessibilityContainerType(NSObject, BEAccessibilityContainerType)
SetBrowserAccessibilityCurrentStatus(NSObject, String)
SetBrowserAccessibilityDetailsElements(NSObject, NSObject[])
SetBrowserAccessibilityHasDomFocus(NSObject, Boolean)
SetBrowserAccessibilityIsRequired(NSObject, Boolean)
SetBrowserAccessibilityKeyboardShortcuts(NSObject, String)
SetBrowserAccessibilityOrientation(NSObject, BEAccessibilityOrientation)
SetBrowserAccessibilityPressedState(NSObject, BEAccessibilityPressedState)
SetBrowserAccessibilityRoleDescription(NSObject, String)
SetBrowserAccessibilitySelectedTextRange(NSObject, NSRange)
SetBrowserAccessibilitySortDirection(NSObject, String)
SetSharedObservers(NSObject, NSKeyValueSharedObserversSnapshot)
ShowWritingTools(IUIResponderStandardEditActions, NSObject)
ToggleBoldface(IUIResponderStandardEditActions, NSObject)
ToggleInspector(IUIResponderStandardEditActions, NSObject)
ToggleItalics(IUIResponderStandardEditActions, NSObject)
ToggleSidebar(IUIResponderStandardEditActions, NSObject)
ToggleUnderline(IUIResponderStandardEditActions, NSObject)
UpdateTextAttributes(IUIResponderStandardEditActions, UITextAttributesConversionHandler)
UseSelectionForFind(IUIResponderStandardEditActions, NSObject)
WillDrawLayer(ICALayerDelegate, CALayer)

即将绘制时 layer 调用的方法。

适用于