alexrothenberg / motion-addressbook

MIT License
89 stars 30 forks source link

Decouple Person from address book #65

Open rromanchuk opened 10 years ago

rromanchuk commented 10 years ago

Apple recommends to use ABRecordCopyCompositeName(ab_person) for localizing names in ios by creating a record with a combination of first, middle, last strings and then asking for the composite name which will be formatted correctly based on the locale. It would be nice to use all the person convenience methods without the context of an address book

jmay commented 10 years ago

Yes, this call is wrapped. person.composite_name maps to the iOS CompositeName function. Not sure what you mean by "without the context of an address book" - you have to open an address book in order to get a person record.