CocoaPods trunk is moving to be read-only. Read more on the blog, there are 17 months to go.

AFAddressBookManager 1.2.1

AFAddressBookManager 1.2.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Feb 2017

Maintained by Anders Fogh Eriksen.



  • By
  • Anders Fogh Eriksen

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

If you are developing for iOS 9 and above you should definitely be using the Contacts framework instead.

Installation

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


Tip Me With ChangeTip