因为最近项目需要,要获取手机通讯并显示出来,上网搜了一下代码,重新整理了一下。
放上github:https://github.com/neng18/JNAddressBook
#import <Foundation/Foundation.h>
@interface JNAddressBook : NSObject
@property (nonatomic,assign) int recordID;
@property (nonatomic,copy) NSString *name;
@property (nonatomic,copy) NSString *email;
@property (nonatomic,copy) NSString *phoneNum;
/**
* Access to mobile phone contacts
*/
+(NSArray*)arrayWithAddressBook;
@end