Sdílet prostřednictvím


UIActionSheet Class

Definition

A UIView that displays an action sheet with one or more buttons. (As of iOS 8, devs should use UIAlertController rather than this class.)

[Foundation.Register("UIActionSheet", true)]
public class UIActionSheet : UIKit.UIView, System.Collections.IEnumerable
[<Foundation.Register("UIActionSheet", true)>]
type UIActionSheet = class
    inherit UIView
    interface IEnumerable
Inheritance
Attributes
Implements

Remarks

As of iOS 8, app devs should use UIAlertController rather than this class. Extensions may not use this class at all.

The UIActionSheet control is a convenient way to allow the application user to choose among alternative actions. The following code and diagram are taken from the "Action Sheets" section of the "iOS Standard Controls" sample.

protected void HandleBtnActionSheetWithOtherButtonsTouchUpInside (object sender, EventArgs e)
{
	actionSheet = new UIActionSheet ("action sheet with other buttons");
	actionSheet.AddButton ("delete");
	actionSheet.AddButton ("cancel");
	actionSheet.AddButton ("a different option!");
	actionSheet.AddButton ("another option");
	actionSheet.DestructiveButtonIndex = 0;
	actionSheet.CancelButtonIndex = 1;
	//actionSheet.FirstOtherButtonIndex = 2;
	actionSheet.Clicked += delegate(object a, UIButtonEventArgs b) {
		Console.WriteLine ("Button " + b.ButtonIndex.ToString () + " clicked");
	};
	actionSheet.ShowInView (View);

}

Constructors

Name Description
UIActionSheet()

Creates a new UIActionSheet with default values.

UIActionSheet(CGRect)
UIActionSheet(NativeHandle)

A constructor used when creating managed representations of unmanaged objects. Called by the runtime.

UIActionSheet(NSCoder)

A constructor that initializes the object from the data stored in the unarchiver object.

UIActionSheet(NSObjectFlag)

Constructor to call on derived classes to skip initialization and merely allocate the object.

UIActionSheet(String, IUIActionSheetDelegate, String, String, String[])

Initializes a UIActionSheet instance.

UIActionSheet(String, IUIActionSheetDelegate)

Initialize a UIActionSheet with a title and a delegate that will handle taps.

UIActionSheet(String)

Initialize an UIActionSheet with a title.

Properties

Name Description
AccessibilityActivationPoint (Inherited from UIView)
AccessibilityAssistiveTechnologyFocusedIdentifiers (Inherited from UIResponder)
AccessibilityAttributedHint (Inherited from UIView)
AccessibilityAttributedLabel (Inherited from UIView)
AccessibilityAttributedUserInputLabels (Inherited from UIView)
AccessibilityAttributedValue (Inherited from UIView)
AccessibilityCustomActions (Inherited from UIResponder)
AccessibilityDirectTouchOptions (Inherited from UIView)
AccessibilityDragSourceDescriptors (Inherited from UIResponder)
AccessibilityDropPointDescriptors (Inherited from UIResponder)
AccessibilityElementsHidden (Inherited from UIView)
AccessibilityExpandedStatus (Inherited from UIView)
AccessibilityFrame (Inherited from UIView)
AccessibilityHint (Inherited from UIView)
AccessibilityIdentifier

Uniquely identifies this for the purposes of accessibility.

(Inherited from UIView)
AccessibilityIgnoresInvertColors (Inherited from UIView)
AccessibilityLabel (Inherited from UIView)
AccessibilityLanguage (Inherited from UIView)
AccessibilityNavigationStyle (Inherited from UIView)
AccessibilityPath (Inherited from UIView)
AccessibilityRespondsToUserInteraction (Inherited from UIView)
AccessibilityTextualContext (Inherited from UIView)
AccessibilityTraits (Inherited from UIView)
AccessibilityUserInputLabels (Inherited from UIView)
AccessibilityValue (Inherited from UIView)
AccessibilityViewIsModal (Inherited from UIView)
ActivityItemsConfiguration (Inherited from UIResponder)
AlignmentRectInsets (Inherited from UIView)
Alpha (Inherited from UIView)
AnchorPoint (Inherited from UIView)
Appearance

Strongly-typed property that returns the UIAppearance class for this class.

AppliedContentSizeCategoryLimitsDescription (Inherited from UIView)
AutoresizingMask (Inherited from UIView)
AutosizesSubviews (Inherited from UIView)
BackgroundColor

The color used for the background.

(Inherited from UIView)
BottomAnchor (Inherited from UIView)
Bounds (Inherited from UIView)
ButtonCount
CanBecomeFirstResponder (Inherited from UIResponder)
CanBecomeFocused (Inherited from UIView)
CancelButtonIndex
CanResignFirstResponder (Inherited from UIResponder)
Center (Inherited from UIView)
CenterXAnchor (Inherited from UIView)
CenterYAnchor (Inherited from UIView)
Class (Inherited from NSObject)
ClassHandle

The Objective-C class handle for this class.

ClearsContextBeforeDrawing (Inherited from UIView)
ClipsToBounds (Inherited from UIView)
CollisionBoundingPath

Returns the closed path that is used for collision detection.

(Inherited from UIView)
CollisionBoundsType

Returns a value that tells how collision bounds are specified.

(Inherited from UIView)
Constraints (Inherited from UIView)
ContentMode (Inherited from UIView)
ContentScaleFactor (Inherited from UIView)
ContentStretch (Inherited from UIView)
CoordinateSpace

Gets the coordinate space implemenation.

(Inherited from UIView)
CornerConfiguration (Inherited from UIView)
DebugDescription (Inherited from NSObject)
Delegate

An instance of the UIKit.IUIActionSheetDelegate model class which acts as the class delegate.

Description (Inherited from NSObject)
DestructiveButtonIndex
DirectionalLayoutMargins (Inherited from UIView)
EditingInteractionConfiguration (Inherited from UIResponder)
EffectiveUserInterfaceLayoutDirection (Inherited from UIView)
ExclusiveTouch

Restricts the event delivery to this view.

(Inherited from UIView)
FirstBaselineAnchor (Inherited from UIView)
FirstOtherButtonIndex
Focused

Whether the UIView is the focused view.

(Inherited from UIView)
FocusEffect (Inherited from UIView)
FocusGroupIdentifier (Inherited from UIView)
FocusGroupPriority (Inherited from UIView)
FocusItemContainer

Gets the container that manages focus information for child focus items.

(Inherited from UIView)
FocusItemDeferralMode (Inherited from UIView)
Frame (Inherited from UIView)
GestureRecognizers (Inherited from UIView)
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from NSObject)
HasAmbiguousLayout (Inherited from UIView)
HeightAnchor (Inherited from UIView)
Hidden

Specifies whether the UIView displays or not.

(Inherited from UIView)
HoverStyle (Inherited from UIView)
InputAccessoryView (Inherited from UIResponder)
InputAccessoryViewController (Inherited from UIResponder)
InputAssistantItem (Inherited from UIResponder)
InputView (Inherited from UIResponder)
InputViewController (Inherited from UIResponder)
InsetsLayoutMarginsFromSafeArea (Inherited from UIView)
Interactions (Inherited from UIView)
IntrinsicContentSize (Inherited from UIView)
IsAccessibilityElement (Inherited from UIView)
IsDirectBinding (Inherited from NSObject)
IsFirstResponder (Inherited from UIResponder)
IsProxy (Inherited from NSObject)
IsTransparentFocusItem (Inherited from UIView)
KeyboardLayoutGuide (Inherited from UIView)
KeyCommands (Inherited from UIResponder)
LargeContentImage (Inherited from UIView)
LargeContentImageInsets (Inherited from UIView)
LargeContentTitle (Inherited from UIView)
LastBaselineAnchor (Inherited from UIView)
Layer (Inherited from UIView)
LayoutGuides (Inherited from UIView)
LayoutMargins (Inherited from UIView)
LayoutMarginsGuide (Inherited from UIView)
LeadingAnchor (Inherited from UIView)
LeftAnchor (Inherited from UIView)
MaskView (Inherited from UIView)
MaximumContentSizeCategory (Inherited from UIView)
MinimumContentSizeCategory (Inherited from UIView)
MotionEffects (Inherited from UIView)
MultipleTouchEnabled

Controls whether the UIView can handle multitouch events.

(Inherited from UIView)
NextResponder (Inherited from UIResponder)
Opaque

Determines whether the view is opaque or not.

(Inherited from UIView)
OverrideUserInterfaceStyle (Inherited from UIView)
ParentFocusEnvironment

Gets the parent focus environment.

(Inherited from UIView)
PasteConfiguration

The UIPasteConfiguration supported by this object.

(Inherited from UIResponder)
PreferredFocusedView

If not null, indicates the child UIView that should receive focus by default.

(Inherited from UIView)
PreferredFocusEnvironments

Gets the list of focus environments, ordered by priority, that the environment prefers when updating the focus.

(Inherited from UIView)
PreservesSuperviewLayoutMargins (Inherited from UIView)
ReadableContentGuide (Inherited from UIView)
RestorationIdentifier (Inherited from UIView)
RetainCount (Inherited from NSObject)
RightAnchor (Inherited from UIView)
SafeAreaInsets (Inherited from UIView)
SafeAreaLayoutGuide (Inherited from UIView)
ScalesLargeContentImage (Inherited from UIView)
Self (Inherited from NSObject)
SemanticContentAttribute (Inherited from UIView)
ShouldGroupAccessibilityChildren (Inherited from UIView)
ShowsLargeContentViewer (Inherited from UIView)
Style
Subviews (Inherited from UIView)
Superclass (Inherited from NSObject)
SuperHandle

Handle used to represent the methods in the base class for this NSObject.

(Inherited from NSObject)
Superview (Inherited from UIView)
Tag (Inherited from UIView)
TextInputContextIdentifier (Inherited from UIResponder)
TextInputMode (Inherited from UIResponder)
TintAdjustmentMode (Inherited from UIView)
TintColor

The color used for tinting.

(Inherited from UIView)
Title
TopAnchor (Inherited from UIView)
TouchBar (Inherited from UIResponder)
TrailingAnchor (Inherited from UIView)
TraitCollection

Gets the trait collection that describes the environment.

(Inherited from UIView)
TraitOverrides (Inherited from UIView)
Transform (Inherited from UIView)
Transform3D (Inherited from UIView)
TranslatesAutoresizingMaskIntoConstraints (Inherited from UIView)
UndoManager (Inherited from UIResponder)
UserActivity (Inherited from UIResponder)
UserInteractionEnabled

Determines whether input events are processed by this view.

(Inherited from UIView)
ViewForBaselineLayout (Inherited from UIView)
ViewForFirstBaselineLayout (Inherited from UIView)
ViewForLastBaselineLayout (Inherited from UIView)
ViewPrintFormatter (Inherited from UIView)
Visible

A property indicating if the action sheet is displayed.

WeakDelegate
WidthAnchor (Inherited from UIView)
Window (Inherited from UIView)
Zone (Inherited from NSObject)

Methods

Name Description
AccessibilityActivate() (Inherited from UIView)
AccessibilityDecrement() (Inherited from UIResponder)
AccessibilityElementDidBecomeFocused() (Inherited from UIResponder)
AccessibilityElementDidLoseFocus() (Inherited from UIResponder)
AccessibilityElementIsFocused() (Inherited from UIResponder)
AccessibilityIncrement() (Inherited from UIResponder)
AccessibilityPerformEscape() (Inherited from UIResponder)
AccessibilityPerformMagicTap() (Inherited from UIResponder)
AccessibilityScroll(UIAccessibilityScrollDirection) (Inherited from UIResponder)
ActionForLayer(CALayer, String) (Inherited from UIView)
Add(String)

Adds a button with the specified text.

Add(UIView)

This is an alias for AddSubview(UIView), but uses the Add pattern as it allows C# 3.0 constructs to add subviews after creating the object.

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

Registers an object for being observed externally using an arbitrary method.

(Inherited from NSObject)
AddObserver(String, NSKeyValueObservingOptions, Action<NSObservedChange>)

Registers an object for being observed externally using an arbitrary method.

(Inherited from NSObject)
AddSubview(UIView) (Inherited from UIView)
AddSubviews(UIView[])

Convenience routine to add various views to a UIView.

(Inherited from UIView)
AlignCenter(NSObject) (Inherited from UIResponder)
AlignJustified(NSObject) (Inherited from UIResponder)
AlignLeft(NSObject) (Inherited from UIResponder)
AlignmentRectForFrame(CGRect) (Inherited from UIView)
AlignRight(NSObject) (Inherited from UIResponder)
AppearanceWhenContainedIn(Type[])

Returns a strongly typed UIAppearance for instances of this class when the view is hosted in the specified hierarchy.

AwakeFromNib() (Inherited from NSObject)
BecomeFirstResponder() (Inherited from UIResponder)
BeginInvokeOnMainThread(Action) (Inherited from NSObject)
BeginInvokeOnMainThread(Selector, NSObject)

Invokes asynchrously the specified code on the main UI thread.

(Inherited from NSObject)
BringSubviewToFront(UIView) (Inherited from UIView)
BuildMenu(IUIMenuBuilder) (Inherited from UIResponder)
ButtonTitle(IntPtr)

Retrieves the title of a button at a specified index.

CanPaste(NSItemProvider[])

Returns true if the responder can paste from the specified item providers.

(Inherited from UIResponder)
CanPerform(Selector, NSObject) (Inherited from UIResponder)
Capture(Boolean)

Performs a screen-capture of the UIView.

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

Calls the 'autorelease' selector on this object.

(Inherited from NSObject)
DangerousRelease()

Calls the 'release' selector on this object.

(Inherited from NSObject)
DangerousRetain()

Calls the 'retain' selector on this object.

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

Called when a focus change may soon happen.

(Inherited from UIView)
DidUpdateFocus(UIFocusUpdateContext, UIFocusAnimationCoordinator)

Delegate method called shortly after focus has changed to a new UIView.

(Inherited from UIView)
DismissWithClickedButtonIndex(IntPtr, Boolean)
DisplayLayer(CALayer) (Inherited from UIView)
Dispose()

Releases the resources used by the NSObject object.

(Inherited from NSObject)
Dispose(Boolean)
DoesNotRecognizeSelector(Selector) (Inherited from NSObject)
Draw(CGRect) (Inherited from UIView)
DrawLayer(CALayer, CGContext) (Inherited from UIView)
DrawRect(CGRect, UIViewPrintFormatter) (Inherited from UIView)
DrawViewHierarchy(CGRect, Boolean) (Inherited from UIView)
Duplicate(NSObject) (Inherited from UIResponder)
EncodeRestorableState(NSCoder) (Inherited from UIView)
EncodeTo(NSCoder)

Encodes the state of the object using the provided encoder.

(Inherited from UIView)
Equals(NSObject) (Inherited from NSObject)
Equals(Object) (Inherited from NSObject)
ExchangeSubview(IntPtr, IntPtr)

This method exchanges the indices of two UIViews within the Subviews array.

(Inherited from UIView)
ExerciseAmbiguityInLayout() (Inherited from UIView)
Export(NSObject) (Inherited from UIResponder)
Find(NSObject) (Inherited from UIResponder)
FindAndReplace(NSObject) (Inherited from UIResponder)
FindNext(NSObject) (Inherited from UIResponder)
FindPrevious(NSObject) (Inherited from UIResponder)
FrameForAlignmentRect(CGRect) (Inherited from UIView)
GestureRecognizerShouldBegin(UIGestureRecognizer) (Inherited from UIView)
GetAppearance(UITraitCollection, Type[])

Obtains the appearance proxy UIActionSheet.UIActionSheetAppearance for UIActionSheet.

GetAppearance(UITraitCollection)

Obtains the appearance proxy UIActionSheet.UIActionSheetAppearance for UIActionSheet.

GetAppearance<T>()

Obtains the appearance proxy UIActionSheet.UIActionSheetAppearance for the subclass of UIActionSheet.

GetAppearance<T>(UITraitCollection, Type[])

Obtains the appearance proxy UIActionSheet.UIActionSheetAppearance for the subclass of UIActionSheet.

GetAppearance<T>(UITraitCollection)

Obtains the appearance proxy UIActionSheet.UIActionSheetAppearance for the subclass of UIActionSheet.

GetConstraintsAffectingLayout(UILayoutConstraintAxis) (Inherited from UIView)
GetDictionaryOfValuesFromKeys(NSString[]) (Inherited from NSObject)
GetDirectionalEdgeInsets(UIViewLayoutRegion) (Inherited from UIView)
GetEdgeInsets(UIViewLayoutRegion) (Inherited from UIView)
GetEnumerator()

Obtains an enumerator that returns the button titles.

GetFocusItems(CGRect)

Returns a list of all the child focus items within the specified rectangle.

(Inherited from UIView)
GetFrame(UIView) (Inherited from UIView)
GetHashCode()

Generates a hash code for the current instance.

(Inherited from NSObject)
GetLayoutGuide(UIViewLayoutRegion) (Inherited from UIView)
GetMethodForSelector(Selector) (Inherited from NSObject)
GetNativeHash() (Inherited from NSObject)
GetProvider(UIDeferredMenuElement) (Inherited from UIResponder)
GetTargetForAction(Selector, NSObject) (Inherited from UIResponder)
HitTest(CGPoint, UIEvent) (Inherited from UIView)
IncreaseSize(NSObject) (Inherited from UIResponder)
Init() (Inherited from NSObject)
InitializeHandle(NativeHandle, String) (Inherited from NSObject)
InitializeHandle(NativeHandle) (Inherited from NSObject)
InsertSubview(UIView, IntPtr)

Inserts the specified subview at the specified location as a subview of this view.

(Inherited from UIView)
InsertSubviewAbove(UIView, UIView) (Inherited from UIView)
InsertSubviewBelow(UIView, UIView) (Inherited from UIView)
InvalidateIntrinsicContentSize() (Inherited from UIView)
Invoke(Action, Double) (Inherited from NSObject)
Invoke(Action, TimeSpan) (Inherited from NSObject)
InvokeOnMainThread(Action) (Inherited from NSObject)
InvokeOnMainThread(Selector, NSObject)

Invokes synchrously the specified code on the main UI thread.

(Inherited from NSObject)
IsDescendantOfView(UIView) (Inherited from UIView)
IsEqual(NSObject) (Inherited from NSObject)
IsKindOfClass(Class) (Inherited from NSObject)
IsMemberOfClass(Class) (Inherited from NSObject)
LayoutIfNeeded() (Inherited from UIView)
LayoutMarginsDidChange() (Inherited from UIView)
LayoutSublayersOfLayer(CALayer) (Inherited from UIView)
LayoutSubviews() (Inherited from UIView)
MakeTextWritingDirectionLeftToRight(NSObject) (Inherited from UIResponder)
MakeTextWritingDirectionRightToLeft(NSObject) (Inherited from UIResponder)
MarkDirty()

Promotes a regular peer object (IsDirectBinding is true) into a toggleref object.

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

Performs the paste.

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

Registers a callback handler that will be executed when one of the specified traits changes.

(Inherited from UIView)
RegisterForTraitChanges(Class[], Action<IUITraitEnvironment,UITraitCollection>) (Inherited from UIView)
RegisterForTraitChanges(Class[], NSObject, Selector) (Inherited from UIView)
RegisterForTraitChanges(Class[], Selector) (Inherited from UIView)
RegisterForTraitChanges(IUITraitDefinition[], Action<IUITraitEnvironment,UITraitCollection>)
Obsolete.
(Inherited from UIView)
RegisterForTraitChanges(IUITraitDefinition[], NSObject, Selector)
Obsolete.
(Inherited from UIView)
RegisterForTraitChanges(IUITraitDefinition[], Selector)
Obsolete.
(Inherited from UIView)
RegisterForTraitChanges(Type[], Action<IUITraitEnvironment,UITraitCollection>)

Registers a callback handler that will be executed when one of the specified traits changes.

(Inherited from UIView)
RegisterForTraitChanges(Type[], NSObject, Selector)

Registers a selector that will be called on the specified object when any of the specified traits changes.

(Inherited from UIView)
RegisterForTraitChanges(Type[], Selector)

Registers a selector that will be called on the current object when any of the specified traits changes.

(Inherited from UIView)
RegisterForTraitChanges<T>(Action<IUITraitEnvironment,UITraitCollection>)

Registers a callback handler that will be executed when the specified trait changes.

(Inherited from UIView)
RegisterForTraitChanges<T1,T2,T3,T4>(Action<IUITraitEnvironment,UITraitCollection>)

Registers a callback handler that will be executed when any of the specified traits changes.

(Inherited from UIView)
RegisterForTraitChanges<T1,T2,T3>(Action<IUITraitEnvironment,UITraitCollection>)

Registers a callback handler that will be executed when any of the specified traits changes.

(Inherited from UIView)
RegisterForTraitChanges<T1,T2>(Action<IUITraitEnvironment,UITraitCollection>)

Registers a callback handler that will be executed when any of the specified traits changes.

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

When this is the active focus environment, requests a focus update, which can potentially change the PreferredFocusedView. (See also UpdateFocusIfNeeded().)

(Inherited from UIView)
SetNeedsLayout() (Inherited from UIView)
SetNeedsUpdateConstraints() (Inherited from UIView)
SetNeedsUpdateProperties() (Inherited from UIView)
SetNilValueForKey(NSString) (Inherited from NSObject)
SetValueForKey(NSObject, NSString) (Inherited from NSObject)
SetValueForKeyPath(NativeHandle, NSString) (Inherited from NSObject)
SetValueForKeyPath(NSObject, NSString) (Inherited from NSObject)
SetValueForUndefinedKey(NSObject, NSString) (Inherited from NSObject)
SetValuesForKeysWithDictionary(NSDictionary) (Inherited from NSObject)
ShouldUpdateFocus(UIFocusUpdateContext)

Called prior to the current object either losing or receiving focus. If either focus environment returns false, the focus update is canceled.

(Inherited from UIView)
ShowFrom(CGRect, UIView, Boolean)
ShowFrom(UIBarButtonItem, Boolean)
ShowFromTabBar(UITabBar)
ShowFromToolbar(UIToolbar)
ShowInView(UIView)
ShowWritingTools(NSObject) (Inherited from UIResponder)
SizeThatFits(CGSize) (Inherited from UIView)
SizeToFit() (Inherited from UIView)
SnapshotView(Boolean) (Inherited from UIView)
SubviewAdded(UIView) (Inherited from UIView)
SystemLayoutSizeFittingSize(CGSize, Single, Single) (Inherited from UIView)
SystemLayoutSizeFittingSize(CGSize) (Inherited from UIView)
TintColorDidChange() (Inherited from UIView)
ToggleBoldface(NSObject) (Inherited from UIResponder)
ToggleInspector(NSObject) (Inherited from UIResponder)
ToggleItalics(NSObject) (Inherited from UIResponder)
ToggleSidebar(NSObject) (Inherited from UIResponder)
ToggleUnderline(NSObject) (Inherited from UIResponder)
ToString()

Returns a string representation of the value of the current instance.

(Inherited from NSObject)
TouchesBegan(NSSet, UIEvent) (Inherited from UIResponder)
TouchesCancelled(NSSet, UIEvent) (Inherited from UIResponder)
TouchesEnded(NSSet, UIEvent) (Inherited from UIResponder)
TouchesEstimatedPropertiesUpdated(NSSet) (Inherited from UIResponder)
TouchesMoved(NSSet, UIEvent) (Inherited from UIResponder)
TraitCollectionDidChange(UITraitCollection)

The trait collection that describes the environmnent changed.

(Inherited from UIView)
UnregisterForTraitChanges(IUITraitChangeRegistration) (Inherited from UIView)
UpdateConstraints() (Inherited from UIView)
UpdateConstraintsIfNeeded() (Inherited from UIView)
UpdateFocusIfNeeded()

If any focus environment has a pending update, this method forces an immediate focus update. Unlike SetNeedsFocusUpdate(), this method may be called by any IUIFocusEnvironment, whether it currently contains focus or not.

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

Returns the UIView identified by the tag. May return null.

(Inherited from UIView)
WillChange(NSKeyValueChange, NSIndexSet, NSString) (Inherited from NSObject)
WillChange(NSString, NSKeyValueSetMutationKind, NSSet) (Inherited from NSObject)
WillChangeValue(String) (Inherited from NSObject)
WillDrawLayer(CALayer)

Method that is called when layer is about to be drawn.

(Inherited from UIView)
WillMoveToSuperview(UIView) (Inherited from UIView)
WillMoveToWindow(UIWindow) (Inherited from UIView)
WillRemoveSubview(UIView) (Inherited from UIView)

Events

Name Description
Canceled

Event raised by the object.

Clicked

Event raised by the object.

Dismissed

Event raised by the object.

Presented

Event raised by the object.

WillDismiss

Event raised by the object.

WillPresent

Event raised by the object.

Extension Methods

Name Description
BrowserAccessibilityDeleteTextAtCursor(NSObject, IntPtr)
BrowserAccessibilityInsertTextAtCursor(NSObject, String)
GetAccessibilityLineEndPositionFromCurrentSelection(NSObject)
GetAccessibilityLineRangeForPosition(NSObject, IntPtr)
GetAccessibilityLineStartPositionFromCurrentSelection(NSObject)
GetBrowserAccessibilityAttributedValue(NSObject, NSRange)
GetBrowserAccessibilityContainerType(NSObject)
GetBrowserAccessibilityCurrentStatus(NSObject)
GetBrowserAccessibilityHasDomFocus(NSObject)
GetBrowserAccessibilityIsRequired(NSObject)
GetBrowserAccessibilityPressedState(NSObject)
GetBrowserAccessibilityRoleDescription(NSObject)
GetBrowserAccessibilitySelectedTextRange(NSObject)
GetBrowserAccessibilitySortDirection(NSObject)
GetBrowserAccessibilityValue(NSObject, NSRange)
SetBrowserAccessibilityContainerType(NSObject, BEAccessibilityContainerType)
SetBrowserAccessibilityCurrentStatus(NSObject, String)
SetBrowserAccessibilityHasDomFocus(NSObject, Boolean)
SetBrowserAccessibilityIsRequired(NSObject, Boolean)
SetBrowserAccessibilityPressedState(NSObject, BEAccessibilityPressedState)
SetBrowserAccessibilityRoleDescription(NSObject, String)
SetBrowserAccessibilitySelectedTextRange(NSObject, NSRange)
SetBrowserAccessibilitySortDirection(NSObject, String)
ActionForLayer(ICALayerDelegate, CALayer, String)
DisplayLayer(ICALayerDelegate, CALayer)
DrawLayer(ICALayerDelegate, CALayer, CGContext)
LayoutSublayersOfLayer(ICALayerDelegate, CALayer)
WillDrawLayer(ICALayerDelegate, CALayer)

Method that is called when layer is about to be drawn.

ProvideImageData(NSObject, IntPtr, UIntPtr, UIntPtr, UIntPtr, UIntPtr, UIntPtr, NSObject)
ProvideImageToMTLTexture(NSObject, IMTLTexture, IMTLCommandBuffer, UIntPtr, UIntPtr, UIntPtr, UIntPtr, NSObject)
SetSharedObservers(NSObject, NSKeyValueSharedObserversSnapshot)
GetDebugDescription(INSObjectProtocol)
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)
GetPencilKitResponderState(UIResponder)
GetAccessibilityCustomRotors(NSObject)

Gets the array of UIAccessibilityCustomRotor objects appropriate for this object.

SetAccessibilityCustomRotors(NSObject, UIAccessibilityCustomRotor[])

Sets the array of UIAccessibilityCustomRotor objects appropriate for this object.

AccessibilityHitTest(NSObject, CGPoint, UIEvent)
GetAccessibilityNextTextNavigationElement(NSObject)
GetAccessibilityNextTextNavigationElementBlock(NSObject)
GetAccessibilityPreviousTextNavigationElement(NSObject)
GetAccessibilityPreviousTextNavigationElementBlock(NSObject)
SetAccessibilityNextTextNavigationElement(NSObject, NSObject)
SetAccessibilityNextTextNavigationElementBlock(NSObject, AXObjectReturnBlock)
SetAccessibilityPreviousTextNavigationElement(NSObject, NSObject)
SetAccessibilityPreviousTextNavigationElementBlock(NSObject, AXObjectReturnBlock)
GetAccessibilityTextInputResponder(NSObject)
GetAccessibilityTextInputResponderHandler(NSObject)
SetAccessibilityTextInputResponder(NSObject, IUITextInput)
SetAccessibilityTextInputResponderHandler(NSObject, UITextInputReturnHandler)
GetCollisionBoundingPath(IUIDynamicItem)

Returns the closed path that is used for collision detection.

GetCollisionBoundsType(IUIDynamicItem)

Returns a value that tells how collision bounds are specified.

GetFocusGroupIdentifier(IUIFocusEnvironment)
GetPreferredFocusedView(IUIFocusEnvironment)

If not null, indicates the child UIView that should receive focus by default.

DidHintFocusMovement(IUIFocusItem, UIFocusMovementHint)

Called when a focus change may soon happen.

GetFocusEffect(IUIFocusItem)
GetFocusGroupPriority(IUIFocusItem)
GetFocusItemDeferralMode(IUIFocusItem)
GetIsTransparentFocusItem(IUIFocusItem)
CanPaste(IUIPasteConfigurationSupporting, NSItemProvider[])

Returns true if the responder can paste from the specified item providers.

Paste(IUIPasteConfigurationSupporting, NSItemProvider[])

Performs the paste.

GetFrame(IUIPopoverPresentationControllerSourceItem, UIView)
AlignCenter(IUIResponderStandardEditActions, NSObject)
AlignJustified(IUIResponderStandardEditActions, NSObject)
AlignLeft(IUIResponderStandardEditActions, NSObject)
AlignRight(IUIResponderStandardEditActions, NSObject)
Copy(IUIResponderStandardEditActions, NSObject)
Cut(IUIResponderStandardEditActions, NSObject)
DecreaseSize(IUIResponderStandardEditActions, NSObject)
Delete(IUIResponderStandardEditActions, NSObject)
Duplicate(IUIResponderStandardEditActions, NSObject)
Export(IUIResponderStandardEditActions, NSObject)
Find(IUIResponderStandardEditActions, NSObject)
FindAndReplace(IUIResponderStandardEditActions, NSObject)
FindNext(IUIResponderStandardEditActions, NSObject)
FindPrevious(IUIResponderStandardEditActions, NSObject)
IncreaseSize(IUIResponderStandardEditActions, NSObject)
MakeTextWritingDirectionLeftToRight(IUIResponderStandardEditActions, NSObject)
MakeTextWritingDirectionRightToLeft(IUIResponderStandardEditActions, NSObject)
Move(IUIResponderStandardEditActions, NSObject)
NewFromPasteboard(IUIResponderStandardEditActions, NSObject)
Paste(IUIResponderStandardEditActions, NSObject)
PasteAndGo(IUIResponderStandardEditActions, NSObject)
PasteAndMatchStyle(IUIResponderStandardEditActions, NSObject)
PasteAndSearch(IUIResponderStandardEditActions, NSObject)
PerformClose(IUIResponderStandardEditActions, NSObject)
Print(IUIResponderStandardEditActions, NSObject)
Rename(IUIResponderStandardEditActions, NSObject)
Select(IUIResponderStandardEditActions, NSObject)
SelectAll(IUIResponderStandardEditActions, NSObject)
ShowWritingTools(IUIResponderStandardEditActions, NSObject)
ToggleBoldface(IUIResponderStandardEditActions, NSObject)
ToggleInspector(IUIResponderStandardEditActions, NSObject)
ToggleItalics(IUIResponderStandardEditActions, NSObject)
ToggleSidebar(IUIResponderStandardEditActions, NSObject)
ToggleUnderline(IUIResponderStandardEditActions, NSObject)
UpdateTextAttributes(IUIResponderStandardEditActions, UITextAttributesConversionHandler)
UseSelectionForFind(IUIResponderStandardEditActions, NSObject)
RegisterForTraitChanges(IUITraitChangeObservable, Class[], NSObject, Selector)
RegisterForTraitChanges(IUITraitChangeObservable, Class[], Selector)
RegisterForTraitChanges(IUITraitChangeObservable, Class[], Action<IUITraitEnvironment,UITraitCollection>)
RegisterForTraitChanges(IUITraitChangeObservable, IUITraitDefinition[], NSObject, Selector)
RegisterForTraitChanges(IUITraitChangeObservable, IUITraitDefinition[], Selector)
RegisterForTraitChanges(IUITraitChangeObservable, IUITraitDefinition[], Action<IUITraitEnvironment,UITraitCollection>)
EndEditing(UIView, Boolean)

Applies to

See also