我正在访问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'。
这有什么问题?
提前致谢, 金