【问题标题】:cocoa - get iphone address groupcocoa - 获取 iphone 地址组
【发布时间】:2012-07-25 11:07:02
【问题描述】:

有什么方法可以获取通讯录中的联系人所属的群组吗?

我可以获取有关联系人的所有信息,但我不知道如何获取群组。

【问题讨论】:

    标签: ios ios5 contacts addressbook


    【解决方案1】:

    我不知道你是否会得到一个联系人组,但你可以通过这个或refer链接知道一个联系人是否属于组类型:

     ABRecordGetRecordType : Returns the type of a record.
    
     ABRecordType ABRecordGetRecordType (
     ABRecordRef record
     );
    
    Parameters : record
    The record whose type is being returned.
    
    Return Value : The record type of record:
    
    kABPersonType for person records
    kABGroupType for group records.
    kABSourceType for source records.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-30
      相关资源
      最近更新 更多