Okay, let's now discuss a date picker UI element. A date picker is just one type of general picker UI element. A date picker displays the competence of date and time, such as hours, minutes, days, and years. And it lets you spin the wheels to select the value of those components. So use a date picker to let user speak instead of type, a date or time value that consists of multiple parts, such as the day, month and year. A date picker displays up to four independent wheels, and each one of them displays values in a single category, such as a month, or an hour.
The current values which are in the middle have an accented dark by default text color, and the rest ones are grayed out. A date picker cannot be resized SAS the date picker is the same size as the iPhone keyboard. A date picker has four built in modes, each of which displays wheels containing a set of different values. Let's go over them. First one is the date and time. The date and time mode, which is actually a default mode displays the wheels for the calendar date, hour and minute values and an optional wheel for the am slash pm designation.
The time mode displays wheels for the art and minute values and an optional wheel for the am pm designation as well. The date mode displays wheels for the month, day and year values. The countdown timer mode displays wheels for the hours and the minute the final count down Sorry, you can specify the total duration of the countdown up to a maximum of 23 hours and 59 minutes. Those were the four built in modes. But you can also come up with custom ones, like you see in this example, where we have only a month and the year. A small note on the am slash pm versus the 24 hour modes.
The way your picker will be displayed depends on the user's locale. There are ways to force one or the other mode though. As much as possible. display a date picker in line with the content. It's best when users can avoid navigating to a different view to use the date picker. In the horizontal or regular environment, a date picker can also appear within the popover if it makes sense in your app, change The interval in the minutes will, by default, and minutes will displays 60 values from zero to 59.
If you need to display a coarser granularity of choices, you can set the wheel to display a larger minute interval as long as the interval divides evenly into 60 for example, you might want to display the quarter hour intervals zero 5345. Except for the background color, it is not possible to change the visual style or size of a picker control