How to get the label value from contacts using phone number || cnlabel get string swift || CNContact get the name label and name
Solution:
Below you can find the label and name from the phone number.
for cont in place.phoneNumbers
{
let replaced = cont.value.stringValue.replaci
if replaced == myphoneNumber
{
let localizedLabel = CNLabeledValue<NSString>.local
let PhoneLabel = localizedLabel
break
}
else
{
continue
}
}
Comments
Post a Comment