UIDatePicker Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A UIControl that displays a date picker control.
[Foundation.Register("UIDatePicker", true)]
public class UIDatePicker : UIKit.UIControl
[<Foundation.Register("UIDatePicker", true)>]
type UIDatePicker = class
inherit UIControl
- Inheritance
- Attributes
Remarks
The UIDatePicker control consists of a number of rotating wheels that allow the application user to select a date.
The UIDatePicker control can be configured for different modes (including a countdown mode) by setting Mode.
Constructors
| Name | Description |
|---|---|
| UIDatePicker() |
Creates a new UIDatePicker with default values. |
| UIDatePicker(CGRect) | |
| UIDatePicker(NativeHandle) |
A constructor used when creating managed representations of unmanaged objects. Called by the runtime. |
| UIDatePicker(NSCoder) |
A constructor that initializes the object from the data stored in the unarchiver object. |
| UIDatePicker(NSObjectFlag) |
Constructor to call on derived classes to skip initialization and merely allocate the object. |
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 |
| 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) |
| AllControlEvents | (Inherited from UIControl) |
| AllTargets | (Inherited from UIControl) |
| 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) |
| Calendar | |
| CanBecomeFirstResponder | (Inherited from UIResponder) |
| CanBecomeFocused | (Inherited from UIView) |
| 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) |
| ContextMenuInteraction | (Inherited from UIControl) |
| ContextMenuInteractionEnabled | (Inherited from UIControl) |
| CoordinateSpace |
Gets the coordinate space implemenation. (Inherited from UIView) |
| CornerConfiguration | (Inherited from UIView) |
| CountDownDuration | |
| Date | |
| DatePickerStyle | |
| DebugDescription | (Inherited from NSObject) |
| Description | (Inherited from NSObject) |
| DirectionalLayoutMargins | (Inherited from UIView) |
| EditingInteractionConfiguration | (Inherited from UIResponder) |
| EffectiveContentHorizontalAlignment | (Inherited from UIControl) |
| EffectiveUserInterfaceLayoutDirection | (Inherited from UIView) |
| Enabled |
Whether this UIControl is enabled. (Inherited from UIControl) |
| ExclusiveTouch |
Restricts the event delivery to this view. (Inherited from UIView) |
| FirstBaselineAnchor | (Inherited from UIView) |
| 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) |
| Highlighted |
Whether this UIControl is highlighted. (Inherited from UIControl) |
| HorizontalAlignment | (Inherited from UIControl) |
| 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) |
| Locale | |
| MaskView | (Inherited from UIView) |
| MaximumContentSizeCategory | (Inherited from UIView) |
| MaximumDate | |
| MinimumContentSizeCategory | (Inherited from UIView) |
| MinimumDate | |
| MinuteInterval | |
| Mode | |
| 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 |
| PreferredDatePickerStyle | |
| PreferredFocusedView |
If not |
| 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) |
| RoundsToMinuteInterval | |
| SafeAreaInsets | (Inherited from UIView) |
| SafeAreaLayoutGuide | (Inherited from UIView) |
| ScalesLargeContentImage | (Inherited from UIView) |
| Selected |
Whether this UIControl is selected. (Inherited from UIControl) |
| Self | (Inherited from NSObject) |
| SemanticContentAttribute | (Inherited from UIView) |
| ShouldGroupAccessibilityChildren | (Inherited from UIView) |
| ShowsLargeContentViewer | (Inherited from UIView) |
| ShowsMenuAsPrimaryAction | (Inherited from UIControl) |
| State | (Inherited from UIControl) |
| 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) |
| SymbolAnimationEnabled | (Inherited from UIControl) |
| Tag | (Inherited from UIView) |
| TextInputContextIdentifier | (Inherited from UIResponder) |
| TextInputMode | (Inherited from UIResponder) |
| TimeZone | |
| TintAdjustmentMode | (Inherited from UIView) |
| TintColor |
The color used for tinting. (Inherited from UIView) |
| ToolTip | (Inherited from UIControl) |
| ToolTipInteraction | (Inherited from UIControl) |
| TopAnchor | (Inherited from UIView) |
| TouchBar | (Inherited from UIResponder) |
| TouchInside |
Whether a touch is inside this UIControl. Read-only. (Inherited from UIControl) |
| Tracking |
Whether this UIControl is tracking touches related to an event. Read-only. (Inherited from UIControl) |
| 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) |
| VerticalAlignment | (Inherited from UIControl) |
| ViewForBaselineLayout | (Inherited from UIView) |
| ViewForFirstBaselineLayout | (Inherited from UIView) |
| ViewForLastBaselineLayout | (Inherited from UIView) |
| ViewPrintFormatter | (Inherited from UIView) |
| WidthAnchor | (Inherited from UIView) |
| Window | (Inherited from UIView) |
| Zone | (Inherited from NSObject) |
Methods
Events
| Name | Description |
|---|---|
| AllEditingEvents |
Raised on any editing events produced. (Inherited from UIControl) |
| AllEvents |
Raised for any event produced. (Inherited from UIControl) |
| AllTouchEvents |
Raised for any touch event produced. (Inherited from UIControl) |
| EditingChanged |
The component changed. (Inherited from UIControl) |
| EditingDidBegin |
Raised when editing has started. (Inherited from UIControl) |
| EditingDidEnd |
Raised when editing ended. (Inherited from UIControl) |
| EditingDidEndOnExit |
Raised on didEndOnexit (Inherited from UIControl) |
| PrimaryActionTriggered |
Event associated with the most-likely behavior of the UIControl. (Inherited from UIControl) |
| TouchCancel |
The touch event has been canceled. (Inherited from UIControl) |
| TouchDown |
Raised when the user touches the control. (Inherited from UIControl) |
| TouchDownRepeat |
Raised when the user double taps the control. (Inherited from UIControl) |
| TouchDragEnter |
Raised on TouchDragEnter events. (Inherited from UIControl) |
| TouchDragExit |
Raised on TouchDragExit events. (Inherited from UIControl) |
| TouchDragInside |
Raised oN TouchDragInside events. (Inherited from UIControl) |
| TouchDragOutside |
Raised on TouchDragOutside events. (Inherited from UIControl) |
| TouchUpInside |
Raised on TouchUpInside events. (Inherited from UIControl) |
| TouchUpOutside |
Raised on TouchUpOutside events. (Inherited from UIControl) |
| ValueChanged |
The value has changed. (Inherited from UIControl) |