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
Post a Comment