Hi,
i´m looking for a way to get "my card" from the contactstore with swift.
Is there an attribute which I can search for?
thank you in advance for any tips
regards
Heinz
Hi,
i´m looking for a way to get "my card" from the contactstore with swift.
Is there an attribute which I can search for?
thank you in advance for any tips
regards
Heinz
Presuming that you’re working on iOS, there’s no programmatic way to identify the ‘me’ card. If you need to know, ask the user.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"
hi Quinn,
thank you for your answer.
I supposed that this as you wrote, because I didn´t find any other hints in the www
regards
Heinz
Is there another way as of August 13, 2016 to again access to the user's "Me" contact information programmatically in iOS 9?
No.
In case anyone is still looking, this is now possible via CNContactStore
using this unifiedMeContactWithKeys(toFetch:) method. Supported in all apple platforms.