1
ABAddressBookRegisterExternalChangeCallback(addressBookRef, { _, _, _ in self.addressBookDidChange()}, nil)

but have this warning

A C function pointer cannot be formed from a closure that captures context

how I can resolve this only with Swift?!

user6788419
  • 7,196
  • 1
  • 16
  • 28
  • Note that the function is deprecated as of iOS 9, compare https://stackoverflow.com/questions/39103732/alternate-for-abaddressbookregisterexternalchangecallback. – Martin R Sep 28 '17 at 09:45
  • is deprecated if min iOS version is 9, but it's not true. I want to support iOS 8. `CNContactStoreDidChangeNotification ` - not work on iOS 8 – Ракыш Шалкар Sep 30 '17 at 05:42

0 Answers0