2

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.

Kaey
  • 4,615
  • 1
  • 14
  • 18

1 Answers1

0

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

Colin Tremblay
  • 357
  • 1
  • 9