Closed kafejo closed 9 years ago
It happens when using filterBlock
let addressBook = APAddressBook() addressBook.fieldsMask = [.CompositeName, .Emails, .Thumbnail] addressBook.filterBlock = { contact in return contact.emails.count > 0 }
I've also tried using optional mark
contact.emails?.count > 0
Tell me if you need to provide more informations.
Ok, I fixed it by adding another optional mark
contact?.emails?.count > 0
It happens when using filterBlock
I've also tried using optional mark
Tell me if you need to provide more informations.