nunzio giulio caggegi nunzio giulio caggegi - 1 year ago 97
Swift Question

Swift nsuserdefaults remove

When i use removeObjectForKey of nsuserdefaults,
also free the memory that the data occupies in ram?

let defaults = NSUserDefaults.standardUserDefaults()
defaults.removeObjectForKey("myKey")

Answer Source

Properties stored in NSUserDefaults do not occupy RAM. The are saved in the flash memory (like hard disk).