Alterplay / APAddressBook

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

Swift loadPhotoByRecordID:completion compile issue "ambiguous reference" #110

Open SteveNewhouse opened 8 years ago

SteveNewhouse commented 8 years ago

Hi there,

I'm trying to use the loadPhotoByRecordID:completion method, and I'm having compile issues... This is on XCode 7 in Swift.

The following code generates an "Ambiguous reference to member 'loadPhotoByRecordId'" error.

APAddressBook.loadPhotoByRecordID(contact.recordID, completion: {(image: UIImage?) -> () in
  // do something
})

I don't see what is ambiguous about it... it seems to only match one method signature as far as I can tell.

Steve

belkevich commented 8 years ago

Looks like you try to use class method instead of instance method. APAddressBook contains only one class method - access