I am trying to figure out how to add persons last name and first name in this code below in order to get their contact image from my phone:
if(ABPersonHasImageData(aABRecordRef))
{
UIImage *image = [UIImage imageWithData:(NSData *)ABPersonCopyImageData(aABRecordRef)];
cell.imageView.image = image;
} else {
UIImage *image1=[UIImage imageNamed:@"User.jpg"];
cell.imageView.image=image1;
}
I could also be missing code here so please do fill in the areas where it is needed. I just cant figure out how to add the first,last name to the code above so i know when i have reached that contact to extract the image for it.
Any help would be great! Thanks!