swift - Best practice in terms of storing profile images in app -


i'm creating app each user has profile image around 30 kb. i'm quite sure best way store these images, store them in realm object nsdata, guess not ideal. otherwise save in disk cache or memory cache, ideal way here? using alamofireimage downloading images.

i use sdwebimage stores images in memory/disk, 1 can cache image manually in image cache or has extension set image via url uiimageview, downloads , caches image automatically (and call completion block if want). clears images old (say week old), or can clear cache manually. kingfisher great , written in swift.


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -