NSContacts - how to get a unified contact-related contacts?
Hello
In my address book, I unified contacts for some people:
-a card with personal data and is shared with my family with iCloud account
-for the same person, one card is business oriented, with data company, on another account iCloud
I'm developing a program with xCode, SWIFT.
I want to get in contact with the commercial aspect, but I am only able to get a touch unified; When I remove it, I delete the two cards.
How can I access contacts linked by a unified contact? Or how can I get access to only one of the linked contacts?
I currently use unifiedContactsMatchingPredicate (with the predicateForContactsInGroupWithIdentifier predicate) that retrieves only the contacts unified; I couldn't find another appropriate method!
Thanks for your help,
Nicolas
Hello
I finally found a (the?) solution with CNContactFetchRequest and its choice of unifyResults,.
Niclas
Tags: iOS Developer
Similar Questions
-
How to get back a contact I accidentally deleted on msn?
I accidentally deleted a contact and do not remember he name id! How can I get them back?
If you delete the contact it will never clear and it will not return unless you synchronize your contacts before. If you send e-mail so that you can see the sent point contact and find the email.
-
Citing ContactList: How to get a selected contact?
I'm trying to get a contact from a contact list after the user selects OR adds. I would of course, this is as transparent as possible with the BB interface. In another thread, someone suggested I try invoking the application of address BB to do this book, and of course that seemed like a good idea.
I can call it in the application and I can get the notification when the user ADDS a contact, but I can't find any way to be informed when the user simply SELECTS a contact. Also, once the contact is added (or, if all goes well, selected), it is not possible for me to put an end to the address book application. Anyone done this kind of thing, or is it not, basically, to do?
TIA,
Allen
Does that help?
How - to launch address book and return a contact
Article number: DB-00151
http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800363/How_To _... -
How to get all the contacts in the group through the loop
Hello world
I know the name of grop, the address book,.
How to loop all of the contacts in the Group and count them?
I find the solution.
Use BlackBerryContactGroup.getContact ();
-
How to get the old contacts/e-mail from Outlook Express in Windows Mail
My OE has simply been replaced by Windows Mail. I managed to set up the new account; However, I am unable to find my old mails, contacts; etc. and import them into Windows Mail. I understood that they can be hidden and have a dbx extension but my research all say no .dbx file... I am running Vista
See also www.oehelp.com/backup.aspx#wm , there are a lot of steps that you must follow them completely or it won't work. The address book is a wab file.
Steve
-
How to get a list of related images?
The report created by InDesign feature package contains too much information - I want only the names of files. Although it is possible to open the report with Text Wrangler and isolate the lines containing the name of the link, the line contains more information than I want to:
-Name: FO - 6000Filter.tif; Type: TIFF CMYK; Status: connected
Unfortunately, when items are selected in the links palette, the COPY command is not available. nor is there a way to export a list from the links palette.
Y at - it an applescript script or a plugin that will generate a list of the names of all related images?
I guess you're on Mac if you use TextWrangler? Try this AppleScript:
-
I have an account that has been hacked and I don't know how to get back
I have an account that has been hacked and I don't know how to get back
Contact the software vendor for the account you're stuck on.
If it is an e-mail account, you can also contact your ISP.
-
Me and my dad is from the same Apple ID and I want to set up his own, but how it will get all his contacts, photos etc from my Apple ID? Or he will lose all? or I could keep them saved for him and send more via an application any? I don't know how to resolve this issue, if someone could point me in the right direction.
Have him create a id Apple here- create and start using a Apple - Apple Support ID, and then both you can create an album-photo sharing Photo Sharing - Apple Support iCloud
-
I can NOT connect my Facebook account to make Yahtzee can access my contacts. He said that Facebook is not configured on this phone. ??? What this mean and how can I solve this problem? I have also a certificate has expired and do NOT know how to get a certificate of update. ? Please Help, I have NOT been able to get help from any of these Issuea. Very frustrated. Please contact me by txt on my iPhone 352-257-9403 if possible. Thank you for your support
iOS 9.2.1
certificate is daily horoscope
wwhat the devil is and why it has expired?
-
Be gone 'contacts' in Hotmail, how to get back in my Inbox?
Be gone 'contacts' in Hotmail, how to get back in my Inbox?
Windows Live Hotmail is supported in this forum
http://answers.Microsoft.com/en-us/windowslive/Forum/Hotmail?tab=all -
Contacts, I have not put on my hotmail contact me - list how to get rid of them?
I have contacts at the end of my Hotmail contact list that I have not entered. Do they not appear on my list when I open the list during the selection of people to send a new message to. All the other times when I check the list of contacts, they aren't there. How to remove these 5 contacts ghosts?
Hello
The question you have posted is related to Hotmail and would be better suited to the community of windows live. Please visit the link below to find a community that will provide the support you want.
-
This sentence is the last thing on my list of contacts and appears only when I use the contacts list to send an email.
I don't know how to remove and how it get there in the first place. I can delete it at the time, however, it
y at - it next time. I can't click on it and there is no address attached.
Can you help me? IT IS SAID HORNEY GIRL HERE
BEA Harrison
Hello
you say not what e-mail program, you use
you use Hotmail?
I'm sorry, but we cannot help with hotmail problems in these forums in response to vista
Please repost your question in hotmail in the hotmail link below forums
http://windowslivehelp.com/product.aspx?ProductID=1
ForumsConsult with Microsoft Certified Solutions -
How can I add an ID related when I get this message (there is a temporary problem with the service. Please try again. If you continue to receive this message, try again later.) ?
Hello
an answer your other thread
-
How to get the Pic of the address book Contact gave a phone number
Hello
How can I access the Blackberry address book and retrieve Contact's photo?
I tried:
String phoneNumber = "1234567890"; Vector contactList = new Vector(); contactList = Phone.getContactsByPhoneNumber(phoneNumber);
except with a real number, of course. However, if I keep this code, I get an error saying ClassNotDefFoundError or something like that. on the line of Phone.getContactsByPhoneNumber () .
Is there another way I can get the pic contact associated with a single address book contact?
Later, I'll probably use this code to get the photo of contact:
Contact contact = (Contact) contactList.elementAt(0); byte[] byteStream = contact.getBinary(Contact.PHOTO, Contact.ATTR_NONE); EncodedImage contactPic = EncodedImage.createEncodedImage(byteStream, 0, byteStream.length);
So as you can see, I just need to get in contact for a specific contact record.
Thanks for any help.
If anyone is interested, he will get the peak of contact contact, based on the phone number. It assumes there is only one contact for this number, so if there is more than one, it will get the peak of contact for the last contact only, because the loop will overwrite the previous photos.
BlackBerryContactList contactList = (BlackBerryContactList) PIM.getInstance().openPIMList(PIM.CONTACT_LIST, PIM.READ_WRITE); // Get a list of contacts that match the phone number (I only want last 8 digits only) Enumeration _enum = contactList.items(inputNumber.substring(inputNumber.length()-8),BlackBerryContact.TEL); while(_enum.hasMoreElements()) { BlackBerryContact c = (BlackBerryContact)_enum.nextElement(); if (c.countValues(BlackBerryContact.PHOTO) > 0) { byte[] photoEncoded = c.getBinary(BlackBerryContact.PHOTO, 0); byte[] photoDecoded = Base64InputStream.decode(photoEncoded, 0, photoEncoded.length); EncodedImage contactPic = EncodedImage.createEncodedImage(photoDecoded,0,photoDecoded.length); String picType = String.valueOf( contactPic.getImageType() ); // If you want to store the photo as a HEX String String hexPic = byteArrayToHexString(photoDecoded) } }
FACT!
-
How to get the number and the name of the contacts selector
Hi all
I got the Contact Picker work but I have no idea how to get the selected telephone number and the name.
There are attributes that I can put like contactId.value () to retrieve or there is another way?
Thanks in advance.
ImageButton{ defaultImageSource: "asset:///images/bluebutton.png" onClicked: { contactPicker.open(); } attachedObjects: [ ContactPicker { id: contactPicker onContactSelected: { result.text = "You chose contact: " + contactId; } } ] } Label { id: result text: "You chose contact: " }
Hello
You can get the contact name and phone number as this,
ImageButton{ defaultImageSource: "asset:///images/bluebutton.png" onClicked: { contactPicker.open(); } attachedObjects: [ ContactPicker { id: contactPicker onContactSelected: { result.text = "You chose contact: " + contactId; // call a cpp method to get the details
app.getDetails(contactId); } } ] } Label { id: result text: "You chose contact: " }
the CPP code:
void ContactDetails(ContactId id) { Contact contact_info = m_contactService->contactDetails(id); QString firstName = contact_info.firstName(); QString lastname = contact_info.lastName(); QList
phoneno_list = contact_info.phoneNumbers(); QStringList no_s; foreach(ContactAttribute attr, phoneno_list) { no_s << attr.value(); } } You can get details like this.
Kind regards
Naresh Kodumuri.
Maybe you are looking for
-
When I open firefox I get inca homepage is that correct?
When I open firefox the usual home page, I was used to seeing is now gone and it's called inca. I deleted Firefox and re-downloaded but I always get the homepage for inca is that good or my son downloaded a bug? How can I fix or is it a new look?
-
Satellite L300D 242 hangs on the TOSHIBA Leading Innovation page
Hello When I turn it on the laptop crashes: press F2 go to the configuration utility, F12 to start the Manager of... of which work nietherThe screen is a black background with TOSHIBA Leading Innovation > about this After a few minutes, it goes away
-
HP 15 Notebook P: dvd player not recognized
Hello First of all, for several days, I've been able to extract the contents of the CD into my iTunes library. Today after downloading and installing some updates, I have been unable to rip a CD into my iTunes. I checked "my computer" "" and it doe
-
Unable to create Restore - Point unable to restore -- error code "... /CEE riter met lapse. (0x800423F3)". Gateway desktop computer; Intel CORE 2 DUO; 32 bits; VISTA Ultimate SP1 & SP2. Recently I reinstalled OS with manufacturers SYSTEM RESTORE disk
-
HP Photosmart more B209 (a - m): Photosmart drivers more B209
I have a Pavilion 17-g015dx I got windows 7 Professional OS installed instead of the OS 8.1. I just got a driver for the USB ports to work computer Forum mobile operating system. Now that they are working, I tried to install the software for my (a -