DMContactBook 1.0.2

DMContactBook 1.0.2

Maintained by Agoer.



  • By
  • liergou

DMContactBook

Usage

Example apps for iOS are included with the project. Here is one simple usage pattern:

  [DMGetAddressBook getAllAddressBookDataViaJSON:^(NSString *json) {
        NSLog(@"%@",json);
    }];
    
//json result
{
  "msg" : "授权成功",
  "code" : "1",
  "dataArray" : [
    {
      "number" : "无号码",
      "org" : "",
      "familyName" : "A",
      "type" : "未知类型",
      "note" : "",
      "fullName" : "A",
      "nickyName" : "Z未命名昵称"
    },
    {
      "number" : "无号码",
      "org" : "",
      "familyName" : "B",
      "type" : "未知类型",
      "note" : "",
      "fullName" : "B",
      "nickyName" : "Z未命名昵称"
    },
    {
      "number" : "无号码",
      "org" : "",
      "familyName" : "C",
      "type" : "未知类型",
      "note" : "",
      "fullName" : "C",
      "nickyName" : "Z未命名昵称"
    },
    {
      "number" : "18888854486",
      "org" : "",
      "familyName" : "名字",
      "type" : "Home",
      "note" : "",
      "fullName" : "名字",
      "nickyName" : "Z未命名昵称"
    },
    {
      "number" : "18214148525",
      "org" : "",
      "familyName" : "Nznzb",
      "type" : "Home",
      "note" : "",
      "fullName" : "Nznzb",
      "nickyName" : "Z未命名昵称"
    },
    {
      "number" : "15532308745",
      "org" : "",
      "familyName" : "Nznzb",
      "type" : "Work",
      "note" : "",
      "fullName" : "Nznzb",
      "nickyName" : "Z未命名昵称"
    },
    {
      "number" : "18888854381",
      "org" : "",
      "familyName" : "Z未命名姓氏",
      "type" : "Home",
      "note" : "",
      "fullName" : "Z未命名",
      "nickyName" : "Z未命名昵称"
    }
  ]
}

Installation

To install using CocoaPods, add the following to your project Podfile:

pod 'DMContactBook', '~>1.0.1'

License

DMContactBook is released under a MIT License. See LICENSE file for details.