nunzio giulio caggegi nunzio giulio caggegi - 3 months ago 21
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

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

Comments