Closed mbayona closed 8 years ago
I have downloaded APAdressBook and have been able to test it in one of my projects. After following the instructions in the ReadMe file, I am now able to fetch name, phone number email, etc, but the image does not work.
I am using :
UIImage *contactImage1 = contacts[0].thumbnail ?: [UIImage imageNamed:@"no_photo"];
hoping to be able to use the name contactImage1 to set the image on which the contact will appear (some TableView).
When I check my console it says that image is (null). I do see the 'no_photo' image in its place.
I also tried:
UIImage contactImage1 = [UIImage imageWithData:(NSData )contacts[0].thumbnail];
No luck. Anybody knows how to accomplish this simple task...?
Miguel Bayona
I have downloaded APAdressBook and have been able to test it in one of my projects. After following the instructions in the ReadMe file, I am now able to fetch name, phone number email, etc, but the image does not work.
I am using :
UIImage *contactImage1 = contacts[0].thumbnail ?: [UIImage imageNamed:@"no_photo"];
hoping to be able to use the name contactImage1 to set the image on which the contact will appear (some TableView).
When I check my console it says that image is (null). I do see the 'no_photo' image in its place.
I also tried:
UIImage contactImage1 = [UIImage imageWithData:(NSData )contacts[0].thumbnail];
No luck. Anybody knows how to accomplish this simple task...?
Miguel Bayona