1. <i id='rPHcq'><tr id='rPHcq'><dt id='rPHcq'><q id='rPHcq'><span id='rPHcq'><b id='rPHcq'><form id='rPHcq'><ins id='rPHcq'></ins><ul id='rPHcq'></ul><sub id='rPHcq'></sub></form><legend id='rPHcq'></legend><bdo id='rPHcq'><pre id='rPHcq'><center id='rPHcq'></center></pre></bdo></b><th id='rPHcq'></th></span></q></dt></tr></i><div id='rPHcq'><tfoot id='rPHcq'></tfoot><dl id='rPHcq'><fieldset id='rPHcq'></fieldset></dl></div>

    2. <small id='rPHcq'></small><noframes id='rPHcq'>

      <legend id='rPHcq'><style id='rPHcq'><dir id='rPHcq'><q id='rPHcq'></q></dir></style></legend>
        • <bdo id='rPHcq'></bdo><ul id='rPHcq'></ul>

        <tfoot id='rPHcq'></tfoot>

        获取 iOS 上所有联系人的列表

        Get a list of all contacts on iOS(获取 iOS 上所有联系人的列表)
              <bdo id='LOLuA'></bdo><ul id='LOLuA'></ul>

              <small id='LOLuA'></small><noframes id='LOLuA'>

            • <legend id='LOLuA'><style id='LOLuA'><dir id='LOLuA'><q id='LOLuA'></q></dir></style></legend>
              <i id='LOLuA'><tr id='LOLuA'><dt id='LOLuA'><q id='LOLuA'><span id='LOLuA'><b id='LOLuA'><form id='LOLuA'><ins id='LOLuA'></ins><ul id='LOLuA'></ul><sub id='LOLuA'></sub></form><legend id='LOLuA'></legend><bdo id='LOLuA'><pre id='LOLuA'><center id='LOLuA'></center></pre></bdo></b><th id='LOLuA'></th></span></q></dt></tr></i><div id='LOLuA'><tfoot id='LOLuA'></tfoot><dl id='LOLuA'><fieldset id='LOLuA'></fieldset></dl></div>

                    <tbody id='LOLuA'></tbody>
                  <tfoot id='LOLuA'></tfoot>
                  本文介绍了获取 iOS 上所有联系人的列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想获取 iPhone 的所有联系人列表.

                  I want to get a list of all contacts of an iPhone.

                  我检查了 通讯录 参考,我可能遗漏了一些东西,但我没有看到它提供了获取联系人列表的方法.

                  I checked Address Book reference, I may missed something but I didn't see it provides a method to get a list of contacts.

                  推荐答案

                  也许是 ABPerson 函数 ABAddressBookCopyArrayOfAllPeople 可以吗?

                  Perhaps ABPerson function ABAddressBookCopyArrayOfAllPeople might do?

                  示例:

                  ABAddressBookRef addressBook = ABAddressBookCreate( );
                  CFArrayRef allPeople = ABAddressBookCopyArrayOfAllPeople( addressBook );
                  CFIndex nPeople = ABAddressBookGetPersonCount( addressBook );
                  
                  for ( int i = 0; i < nPeople; i++ )
                  {
                      ABRecordRef ref = CFArrayGetValueAtIndex( allPeople, i );
                      ...
                  }
                  

                  这篇关于获取 iOS 上所有联系人的列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  What values should I use for iOS boolean states?(我应该为 iOS 布尔状态使用什么值?)
                  How do I get NSJSONSerialization to output a boolean as true or false?(如何让 NSJSONSerialization 将布尔值输出为真或假?)
                  Is there any difference between bool, Boolean, and BOOL in Objective-C?(Objective-C 中的 bool、Boolean 和 BOOL 之间有什么区别吗?)
                  Set bool property of all objects in the array(设置数组中所有对象的布尔属性)
                  What is the correct way to proceed with this bool?(处理这个布尔值的正确方法是什么?)
                  iOS: Use a boolean in NSUserDefaults(iOS:在 NSUserDefaults 中使用布尔值)

                  1. <legend id='ljZyW'><style id='ljZyW'><dir id='ljZyW'><q id='ljZyW'></q></dir></style></legend>

                  2. <i id='ljZyW'><tr id='ljZyW'><dt id='ljZyW'><q id='ljZyW'><span id='ljZyW'><b id='ljZyW'><form id='ljZyW'><ins id='ljZyW'></ins><ul id='ljZyW'></ul><sub id='ljZyW'></sub></form><legend id='ljZyW'></legend><bdo id='ljZyW'><pre id='ljZyW'><center id='ljZyW'></center></pre></bdo></b><th id='ljZyW'></th></span></q></dt></tr></i><div id='ljZyW'><tfoot id='ljZyW'></tfoot><dl id='ljZyW'><fieldset id='ljZyW'></fieldset></dl></div>
                      <bdo id='ljZyW'></bdo><ul id='ljZyW'></ul>
                      <tfoot id='ljZyW'></tfoot>

                      <small id='ljZyW'></small><noframes id='ljZyW'>

                              <tbody id='ljZyW'></tbody>