Instance Property

dates

An array containing labeled Gregorian dates.

Declaration

var dates: [CNLabeledValue<NSDateComponents>] { get set }

Discussion

This property is an array of CNLabeledValue objects, each of which has an NSString label and NSDateComponents value. You can use this property to store Gregorian dates such as anniversaries. Day and month are required and year is optional. Calendar is nil or Gregorian. All other date components are invalid.

See Also

Setting Birthday Information

var nonGregorianBirthday: DateComponents?

A date component for the non-Gregorian birthday of the contact.

var birthday: DateComponents?

A date component for the Gregorian birthday of the contact.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software