ios - Networking optimization for UITableView -
i'm writing super simple photo sharing app practice using parse.com server.
i have tableview shows photos user has uploaded server. if nothing persisted , guy has million photos uploaded server, best way fetch photos?
i know simple way make 1 request on viewdidload , store in memory before persisting it. there better way? ideally pull photos in batches, , user scrolled, pull new photos. perhaps there library know of helps this?
if don't want entire thing yourself, should use sdwebimage
a typical code example looks
[imageview sd_setimagewithurl:[nsurl urlwithstring:@"https://graph.facebook.com/olivier.poitrey/picture"] placeholderimage:[uiimage imagenamed:@"avatar-placeholder.png"] options:sdwebimagerefreshcached];
Comments
Post a Comment