Retrieve all contacts phone numbers in iOS

后端 未结 4 1748
闹比i
闹比i 2020-11-27 06:49

So far I saw methods to get multiple phone numbers if I show a picker so user can select people and then get the phone number. What I want is retrieving all contacts

4条回答
  •  [愿得一人]
    2020-11-27 07:29

    Sure you can. First you'll need to get the user permission for doing so. If you won't the user will have to manually authorize your app from the settings. There's a great example on how to retrieve all phone numbers, names, addresses etc' here.

提交回复
热议问题