Is there any way to fetch the My Card details from Contacts or from Settings > Mail, Contacts, Calendar > My Info.
I have tried [[NSUserDefaults standardUserDefaults] objectForKey:@"SBFormattedPhoneNumber"];
but this returns null.
Is there any way to fetch the My Card details from Contacts or from Settings > Mail, Contacts, Calendar > My Info.
I have tried [[NSUserDefaults standardUserDefaults] objectForKey:@"SBFormattedPhoneNumber"];
but this returns null.
This answer is probably no longer needed, but it looks like you can do this in macOS with CNContactStore().unifiedMeContactWithKeys(toFetch: keysToFetch)
See this related question for more information: Swift grab "My Card" CNContact