I recently asked this question: Populating a UITableView in Firebase a Set Number of Cells at a time
But through the discussion I realized that the question was actually two questions, so I'm going to start a second thread for the second question:
Is there a way people generally populate tableviews of images from large data sets using Firebase?
Below is the code I'm using for retrieving images. The images are base64 encoded NSStrings.
NSString* profPicString= [child.value objectForKey: @"profilePicture"];
NSData *dataFromBase64=[NSData base64DataFromString:profPicString];
UIImage *profPicImage = [[UIImage alloc]initWithData:dataFromBase64];
item.profilePicture = profPicImage;
The images, however, take a long time to download. A tableview of just 10 images will take 5 or 10 seconds to load. If it's like this with 10 images, it will be truly glacial with hundreds or thousands.
I doubt I'm the first person to encounter this issue, and I was wondering if there's a better/more efficient way of doing it?
Thanks for the help!