UITableView with contact image problems.
- by prathumca
As par my app requirement, I'm showing the contact images in a UITableView as shown below.
ABRecordRef contact = [self getContact];
if(contact && ABPersonHasImageData(contact))
{
UIImage *contactImage = [UIImage imageWithData:(NSData*)ABPersonCopyImageData(contact)];
callImage.image = contactImage;
}
I've two problems if I use the above code segment.
Table Scrolling is too slow. If comment the above code, then UITable responds very fast.
Memory Management. My app started using 25 - 30 MB of RAM.
Is there any better way to avoid the above two problems?