Instance Method

setDate:animated:

Sets the date to display in the date picker, with an option to animate the setting.

Declaration

- (void)setDate:(NSDate *)date animated:(BOOL)animated;

Parameters

date

An NSDate object representing the new date to display in the date picker.

animated

YES to animate the setting of the new date, otherwise NO. The animation rotates the wheels until the new date and time is shown under the highlight rectangle.

See Also

Managing the Date and Calendar

calendar

The calendar to use for the date picker.

date

The date displayed by the date picker.

locale

The locale used by the date picker.

timeZone

The time zone reflected in the date displayed by the date picker.