Alterplay / APAddressBook

Easy access to iOS address book
MIT License
1.38k stars 193 forks source link

Address not showing. #173

Closed doriansgithub closed 6 years ago

doriansgithub commented 6 years ago

As per the photo, the mapSearch works, but the local addressBook doesn't. img_0454

    case SearchTableSection.addressBook.rawValue:
        let cell:AddressBookSearchCell = self.tableView.dequeueReusableCell(withIdentifier: "AddressBookSearchCell") as! AddressBookSearchCell
        cell.update(with: contacts[indexPath.row])
        return cell
    case SearchTableSection.addressMap.rawValue:
        let cell:AddressMapSearchCell = self.tableView.dequeueReusableCell(withIdentifier: "AddressMapSearchCell") as! AddressMapSearchCell
        cell.mapItem = mapSearchResult[indexPath.row]
        return cell
belkevich commented 6 years ago

Do you add the APContactFieldAddressesWithLabels field (or APContactFieldAddressesOnly) to fields bit-mask of APAddressBook instance?

doriansgithub commented 6 years ago

You're a genius! Fixed! Case Closed!

belkevich commented 6 years ago

🤣