ernestocattaneo ernestocattaneo - 1 year ago 142
Swift Question

How to print NSUserDefaults content in Swift

How do you print all the content of NSUserDefaults?
I need to see everything that has been stored into NSUserDefaults. Is there a simple way to print that or to see it into the logs?

In Swift!

Thank you

Answer Source

Adding more options:

For retrieving the complete dictionary representation of user defaults:


For retrieving the keys:


For retrieving the values:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download