iOS 9 Swift Programming Cookbook: Solutions and Examples for iOS Apps by Nahavandipoor Vandad

iOS 9 Swift Programming Cookbook: Solutions and Examples for iOS Apps by Nahavandipoor Vandad

Author:Nahavandipoor, Vandad [Nahavandipoor, Vandad]
Language: eng
Format: azw3
Publisher: O'Reilly Media
Published: 2015-12-08T16:00:00+00:00


//birthday let birthday = NSDateComponents() birthday.year = 1980 birthday.month = 9 birthday.day = 27 fooBar.birthday = birthday

Every contact also has a property named dates that can contain dates such as the user’s anniversary. This is an array of CNLabeledValue objects. Here I am going to set the anniversary for this user:

//anniversary let anniversaryDate = NSDateComponents() anniversaryDate.month = 6 anniversaryDate.day = 13 let anniversary = CNLabeledValue(label: "Anniversary", value: anniversaryDate) fooBar.dates = [anniversary]



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.