Retrieve iPhone Address Book sorting preference programmatically?

南笙酒味 提交于 2019-12-08 05:50:41

问题


Is it possible to detect the sorting technique used by the Address Book on a particular user's phone? (For instance, "sort by last name" or "sort by first name".)

Thanks.


回答1:


From the docs

ABPersonGetSortOrdering
Returns the user’s sort ordering preference for lists of persons.

ABPersonSortOrdering ABPersonGetSortOrdering (
   void
);


来源:https://stackoverflow.com/questions/2067934/retrieve-iphone-address-book-sorting-preference-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!