populate UITableViewCell with JSON Base64?
Is it a good idea to return thumbnail images in base64 through JSON in 开发者_运维技巧a RESTful call for populating UITableViewCell's? Or should one really make n requests for n images (lazy loading)? What's better?
Thanks!
You always want to start showing results to a user as fast as possible.
If your UITableView's cells will contain both text and images, get the text values first and show that, with placeholders for the graphics. Then retrieve the images (one by one, or batched up).
Also, load the images a binary values, not base64 (because base64 encoding results in more bytes being transferred).
Check out this project, it has everything you want SDWebImage
精彩评论