Latest 0.0.4
Homepage https://github.com/jiutianhuanpei/SHBContactManager
License MIT
Platforms ios 7.0, requires ARC
Dependencies HYMediator
Frameworks AddressBook, Contacts
Authors

获取系统联系人

把系统的 AddressBook 和 Contacts 两个框架进行组件化封装,以便在不同的系统版本下可以运行对应的api。

封装出的组件外放了三个api:

方法 说明
– (void)HYMediator_applyForPermission:(void(^)(BOOL granted, NSError *error))handler 获取系统读取通讯录权限
– (NSArray <NSDictionary *>*)HYMediator_fetchAllLocalContacts 读取所有的,符合规则的成员,规则写在 ContactsTools 文件里。
– (void)HYMediator_contactsDidChanged:(dispatch_block_t)handler 接收通讯录有改变时的通知回调

Latest podspec

{
    "name": "SHBContactManager",
    "version": "0.0.4",
    "summary": "u672cu5730u901au8bafu5f55u8bfbu53d6u6a21u5757",
    "description": "u8bfbu53d6u672cu5730u901au8bafu5f55uff0cu7ec4u4ef6u5316u5c01u88c5uff0cu5e76u533au5206 iOS9 u4ee5u4e0au6216u4ee5u4e0bapiuff0cu9700u8981 xCode 9 u4ee5u4e0au6253u5f00u3002",
    "homepage": "https://github.com/jiutianhuanpei/SHBContactManager",
    "license": "MIT",
    "authors": {
        "shenhongbang": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/jiutianhuanpei/SHBContactManager.git",
        "tag": "0.0.4"
    },
    "source_files": "ContactManager/**/*",
    "frameworks": [
        "AddressBook",
        "Contacts"
    ],
    "dependencies": {
        "HYMediator": []
    },
    "xcconfig": {
        "USER_HEADER_SEARCH_PATHS": "$(inherited) $(SRCROOT)/HYMediator"
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This