0

I would like to get which settings has user set in his device to set the same in my app. User can set "Sort Order" and "Display Order" as "First, Last" or "Last, First". Where can I access what user has set?

I found that in ABAddressBook class there is method defaultNameOrdering() which looks like what I am looking for. But that class is deprecated. Is there a property or a same method in CNContactStore? And for both? Sort and display order?

I can't find any similar info in CNContactStore. Thanks for help

Libor Zapletal
  • 13,752
  • 20
  • 95
  • 182
  • 1
    https://developer.apple.com/documentation/contacts/cncontactformatter/1397731-nameorderforcontact?language=objc – Marek H Aug 19 '21 at 11:21
  • @MarekH Looks like partly what I am looking for. Not sure why it gets `CNContact` as parameter. But it's just for "Display order". Is there a way how to find out "Sort Order"? – Libor Zapletal Aug 19 '21 at 11:39

0 Answers0