我正在尝试使用ABPerson对象。documentation告诉我要包含ABPerson.h。
这基本上是我的代码:
#import "ABPerson.h"
[...]
-(void) updateImageWithContact:(ABPerson)contact;问题是我得到了一个错误:
error: ABPerson.h: No such file or directory我确实包括了Addressbook.framework,所以我不知道是怎么回事。
如果我删除了#import,没有错误,但是我不能使用ABPerson类。
发布于 2009-10-30 23:26:28
试一试
#import <AddressBook/ABPerson.h>编辑:
#import <AddressBook/AddressBook.h>,并且您不需要额外的标头即可使用地址簿https://stackoverflow.com/questions/1650448
复制相似问题