我正在访问 OS X 通讯簿,如下所示:
if let book = ABAddressBook.sharedAddressBook() {
let people = book.people() as [ABPerson]
for person in people {
// Now I want to get the person's image to some variable
ABPersonCopyImageData(person) // compile error
}
}
Xcode 说“ABPerson”不能转换为“ABPerson”。
那有什么问题?
在此先感谢,金