I am attempting to retrieve the names and phone number(s) of all contacts and put them into arrays with Swift in iOS. I have made it this far:
Swift 3
"_$! This item is written to create difference as well as putting a piece of opportunity to rely on various options.
for con in contacts
{
for num in con.phoneNumbers
{
if num.label == "_$!!$_" //Please Don't Change this!
{
self.contactNames.append(con.givenName)
self.contactNums.append(num.value.stringValue)
break
}
else
{
continue
}
}
}
Here we have num.value.stringValue