I am trying to decide wether i should store my UIImages
, which I get from my database and add to a data model inside the app, as UIImage()
or as Data()
or as URL()
.
What is the most effective method in terms of taking up the least storage space and being the fastest in displaying?
Use case: I have a similar use case to instagram basic functionality
Currently my DM looks as follows:
class Post: NSObject {
var media = UIImage()
var user = User()
var snapshot : [String : AnyObject]?
}
helpful link: This link may be of use to those still seeking help: Link.