iOS Guides | Samples

MonoTouch.UIKit.UIDatePicker Class

A UIControl that displays a date picker control.

See Also: UIDatePicker

Syntax

[MonoTouch.Foundation.Register("UIDatePicker", true)]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.TvOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
public class UIDatePicker : UIControl

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 UIDatePicker.Mode.

Related content

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.UIDatePicker are listed below.

See Also: UIControl

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
Initializes the UIDatePicker with the specified frame.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
static
AppearanceUIDatePicker+UIDatePickerAppearance. Strongly-typed property that returns the UIAppearance class for this class.
CalendarNSCalendar. The calendar used by the UIDatePicker.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
CountDownDurationDouble. The seconds from which the countdown timer counts down.
DateNSDate. The date displayed by this UIDatePicker.
LocaleNSLocale. The locale used by this UIDatePicker.
MaximumDateNSDate. The maximum date that this UIDatePicker can display.
MinimumDateNSDate. The minimum date that this UIDatePicker can display.
MinuteIntervalInt32. The interval at which this UIDatePicker should display minutes.
ModeUIDatePickerMode. The mode of this UIDatePicker.
TimeZoneNSTimeZone. The time zone used by the date displayed in this UIDatePicker.

Public Methods

static
AppearanceWhenContainedIn(params Type[]) : UIDatePicker+UIDatePickerAppearance
Returns a strongly typed UIAppearance for instances of this class when the view is hosted in the specified hierarchy.
static
GetAppearance(UITraitCollection) : UIDatePicker+UIDatePickerAppearance
Returns an appearance proxy for the specified traits.
static
GetAppearance(UITraitCollection, params Type[]) : UIDatePicker+UIDatePickerAppearance
Returns an appearance proxy for the specified traits when found in the containers containment hierarchy.
static
GetAppearance<T>() : UIDatePicker+UIDatePickerAppearance
Obtains the appearance proxy UIDatePickerAppearance for the subclass of UIDatePicker.
static
GetAppearance<T>(UITraitCollection) : UIDatePicker+UIDatePickerAppearance
Obtains the appearance proxy UIDatePickerAppearance for the subclass of UIDatePicker.
static
GetAppearance<T>(UITraitCollection, params Type[]) : UIDatePicker+UIDatePickerAppearance
Obtains the appearance proxy UIDatePickerAppearance for the subclass of UIDatePicker that has the specified trait collection when the view is hosted in the specified hierarchy.
SetDate(NSDate, Boolean)
Sets the date displayed in this UIDatePicker, optionally animating the change.