Search code examples
iosiphonecocoa-touchaddressbook

Cocoa Touch get User's full name


I have seen several other Apps getting my full name. I have this set up in my Address Book, which syncs with my Mac. On My Mac, a card with my name is marked as the 'me' card. How do the iOS apps get this card, and then extract the full name from it? I've never worked with the AddressBook framework on iOS, and have not done too much on the Mac, besides showing a person picker (which I also will need to figure out sooner or later ;)

Any pointers in the right directions, or just quick tutorials or something of the sort on the iOS AddressBook framework will help.


Solution

  • I made a function that extracts a name from the device name.

    Slightly off topic, but I hope this can help people looking for the same thing as I did when finding your question.

    Better way to get the user's name from device?