Latest 1.2.1
Homepage https://github.com/Fogh/AFAddressBookManager
License MIT
Platforms ios 6.0, requires ARC
Frameworks AddressBook
Authors

Pod version
Pod platform
Build Status

Get contacts from iOS Address Book by their phone numbers and email addresses. Works on iOS 6+.

Project has been deprecated. Instead you shound be using the Contacts framework

Installation

CocoaPods

platform :ios, '6.0'
pod 'AFAddressBookManager', '~> 1.2'

Manually

Copy all files from AFAddressBookManager folder to your project and add the Address Book framework.

Usage

Import AFAddressBookManager.h in the class where you want to use it.

Available methods

Get name (first and last) of contact by phone number:

+ (NSString *)nameForContactWithPhoneNumber:(NSString *)phoneNumber;

Get photo of contact by phone number:

+ (UIImage *)photoForContactWithPhoneNumber:(NSString *)phoneNumber;

Get name (first and last) of contact by email address:

+ (NSString *)nameForContactWithEmailAddress:(NSString *)emailAddress;

Get photo of contact by email address:

+ (UIImage *)photoForContactWithEmailAddress:(NSString *)emailAddress;

Other iOS Open Source Projects by Me



<img
alt="Tip Me With ChangeTip"
src="
https://cdn.changetip.com/img/logos/tipme_square.png?1"/>

Latest podspec

{
    "name": "AFAddressBookManager",
    "version": "1.2.1",
    "summary": "Get contacts from AddressBook by their phone numbers.",
    "homepage": "https://github.com/Fogh/AFAddressBookManager",
    "license": "MIT",
    "authors": {
        "Anders Fogh Eriksen": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Fogh/AFAddressBookManager.git",
        "tag": "1.2.1"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source_files": "AFAddressBookManager/*.{h,m}",
    "frameworks": "AddressBook",
    "requires_arc": true,
    "social_media_url": "https://twitter.com/f0gh",
    "deprecated": true
}

Pin It on Pinterest

Share This