Latest 1.1.1
Homepage https://github.com/zachariahlee/ZHContactManager
License MIT
Platforms ios 8.0, requires ARC
Frameworks Contacts, ContactsUI, AddressBook, AddressBookUI, MessageUI
Authors

通讯录操作:选择联系人、添加新联系人、添加到现有联系人;打电话、发短信、发邮件

选择联系人

[[ZHAuthManager defaultManager] requestAuthorization:AuthTypeContacts authorizedResult:^(BOOL granted) {
    if (granted) {
        ZHContactManager *manager = [ZHContactManager defaultManager];
        [manager selectContactWithCompletionHandler:^(ZHContact *contact) {
            if (contact) {
                //do something
            }
        }];
    }
}];

获取通讯录所有联系人

NSMutableArray *contacts = [manager getAllContacts];

添加新联系人

[manager addNewContactWithPhoneNumber:@"123456"];

添加到现有的联系人-系统UI

[manager addToExistingContactWithPhoneNumber:@"123456"];

打电话

[manager callPhone:@"123456"];

发送短信

简单用法

[manager sendMessage];

发送邮件

简单用法

[manager sendEmail];

Latest podspec

{
    "name": "ZHContactManager",
    "version": "1.1.1",
    "summary": "u901au8bafu5f55u64cdu4f5c",
    "description": "u901au8bafu5f55u64cdu4f5cuff1au9009u62e9u8054u7cfbu4ebau3001u6dfbu52a0u65b0u8054u7cfbu4ebau3001u6dfbu52a0u5230u73b0u6709u8054u7cfbu4ebauff1bu6253u7535u8bddu3001u53d1u77edu4fe1u3001u53d1u90aeu4ef6",
    "homepage": "https://github.com/zachariahlee/ZHContactManager",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "zachariahlee": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/zachariahlee/ZHContactManager.git",
        "tag": "1.1.1"
    },
    "source_files": "Pod/Classes/*.{h,m}",
    "frameworks": [
        "Contacts",
        "ContactsUI",
        "AddressBook",
        "AddressBookUI",
        "MessageUI"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This