public class UIDatePicker extends UIControl
NoIntrinsicMetric
Constructor and Description |
---|
UIDatePicker()
Constructs a default UIDatePicker object located at (0,0) with 0 weight
and 0 height.
|
UIDatePicker(CGRect rect)
Constructs a UIDatePicker object initialized with the dimensions and
position specified in the rect parameter.
|
Modifier and Type | Method and Description |
---|---|
NSCalendar |
calendar()
Returns the NSCalendar used on this date picker.
|
double |
countDownDuration()
Returns the seconds from which the timer starts the count down.
|
NSDate |
date()
Returns the date of this date picker.
|
int |
datePickerMode()
Returns a number that defines the type of this date picker.
|
NSLocale |
locale()
Returns the locale of this date picker.
|
NSDate |
maximumDate()
Returns the maximum date of this date picker.
|
NSDate |
minimumDate()
Returns the minimum date of this date picker.
|
int |
minuteInterval()
The interval at which the date picker should display minutes.
|
void |
setCalendar(NSCalendar calendar)
Sets the calendar type for this date picker specified by the parameter.
|
void |
setCountDownDuration(double countDownDuration)
Sets the seconds from which the timer will start the count down.
|
void |
setDate(NSDate date)
Sets the date for this date picker.
|
void |
setDate(NSDate date,
boolean animated)
Sets the date of date picker applying animation through the change or
not.
|
void |
setDatePickerMode(int UIDatePickerMode)
Sets the type for this date picker
|
void |
setLocale(NSLocale locale)
Sets the local format of date that this date picker will display.
|
void |
setMaximumDate(NSDate maximumDate)
Sets the maximum date of this date picker.
|
void |
setMinimumDate(NSDate minimumDate)
Sets the minimum date that this date picker can display.
|
void |
setMinuteInterval(int minuteInterval)
The interval at which the date picker should display minutes.
|
void |
setTimeZone(NSTimeZone timeZone)
Sets the time zone of this date picker.
|
NSTimeZone |
timeZone()
Returns the time zone of the date picker expressed as NSTimeZone object.
|
addTarget, allTargets, contentHorizontalAlignment, contentVerticalAlignment, hitTest, isEnabled, isHighlighted, isSelected, removeTarget, sendActionsForControlEvents, setContentHorizontalAlignment, setContentVerticalAlignment, setEnabled, setHighlighted, setSelected, state, touchesBegan, touchesCancelled, touchesEnded, touchesMoved
accessibilityIdentifier, addConstraint, addConstraints, addGestureRecognizer, addLayoutGuide, addSubview, alpha, animateWithDuration, animateWithDuration, animateWithDuration, areAnimationsEnabled, autoresizesSubviews, autoresizingMask, backgroundColor, bottomAnchor, bounds, bringSubviewToFront, center, centerXAnchor, centerYAnchor, clipsToBounds, constraints, contentCompressionResistancePriorityForAxis, contentHuggingPriorityForAxis, contentMode, convertPointFromView, convertPointToView, convertRectFromView, convertRectToView, didAddSubview, didMoveToSuperview, didMoveToWindow, drawRect, frame, gestureRecognizers, heightAnchor, insertSubview, insetsLayoutMarginsFromSafeArea, intrinsicContentSize, invalidateIntrinsicContentSize, isHidden, isMultipleTouchEnabled, isOpaque, isUserInteractionEnabled, layer, layoutIfNeeded, layoutMargins, layoutMarginsDidChange, layoutMarginsGuide, layoutSubviews, leadingAnchor, leftAnchor, maskView, needsUpdateConstraints, nextResponder, overrideUserInterfaceStyle, pointInside, preservesSuperviewLayoutMargins, removeConstraint, removeConstraints, removeFromSuperview, removeGestureRecognizer, removeLayoutGuide, requiresConstraintBasedLayout, restorationIdentifier, rightAnchor, safeAreaInsets, safeAreaLayoutGuide, sendSubviewToBack, setAccessibilityIdentifier, setAlpha, setAnimationBeginsFromCurrentState, setAnimationCurve, setAnimationDelay, setAnimationDuration, setAnimationRepeatAutoreverses, setAnimationRepeatCount, setAnimationsEnabled, setAnimationStartDate, setAutoresizesSubviews, setAutoresizingMask, setBackgroundColor, setBounds, setCenter, setClearsContextBeforeDrawing, setClipsToBounds, setContentCompressionResistancePriority, setContentHuggingPriority, setContentMode, setFrame, setGestureRecognizers, setHidden, setInsetsLayoutMarginsFromSafeArea, setLayoutMargins, setMaskView, setMultipleTouchEnabled, setNeedsDisplay, setNeedsLayout, setNeedsUpdateConstraints, setOpaque, setOverrideUserInterfaceStyle, setPreservesSuperviewLayoutMargins, setRestorationIdentifier, setTag, setTintAdjustmentMode, setTintColor, setTransform, setTranslatesAutoresizingMaskIntoConstraints, setUserInteractionEnabled, sizeThatFits, sizeToFit, subviews, superview, tag, tintAdjustmentMode, tintColor, tintColorDidChange, topAnchor, toString, trailingAnchor, transform, transitionWithView, translatesAutoresizingMaskIntoConstraints, updateConstraints, updateConstraintsIfNeeded, userInterfaceLayoutDirection, viewForFirstBaselineLayout, viewForLastBaselineLayout, widthAnchor, willMoveToSuperview, willMoveToWindow, willRemoveSubview, window
becomeFirstResponder, isFirstResponder, resignFirstResponder
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public UIDatePicker()
public UIDatePicker(CGRect rect)
rect
- CGRect that defines dimension and position of UIDatePicker.public NSCalendar calendar()
public void setCalendar(NSCalendar calendar)
calendar
- The calendar for the date picker.public double countDownDuration()
public void setCountDownDuration(double countDownDuration)
countDownDuration
- The seconds from which the timer will start the
count down.public NSDate date()
public void setDate(NSDate date)
date
- The date that will be displayed on this date picker.public int datePickerMode()
public void setDatePickerMode(int UIDatePickerMode)
UIDatePickerMode
- The type of date picker.public NSLocale locale()
public void setLocale(NSLocale locale)
locale
- The local format of date that this date picker will
display.public NSDate maximumDate()
public void setMaximumDate(NSDate maximumDate)
maximumDate
- The maximum date that this date picker will display.public NSDate minimumDate()
public void setMinimumDate(NSDate minimumDate)
minimumDate
- The minimum date that this date picker will display.public int minuteInterval()
public void setMinuteInterval(int minuteInterval)
minuteInterval
- The interval at which the date picker should
display minutes.public NSTimeZone timeZone()
public void setTimeZone(NSTimeZone timeZone)
timeZone
- The preferred time zone.public void setDate(NSDate date, boolean animated)
date
- The preferred date of the date picker defined as NSDate
object.animated
- Boolean value that defines whether the change will be
animated or not.Copyright © 2020. All rights reserved.