[SWIFT] Show all data stored in UserDefaults

Introduction

When you want to check the contents of UserDefaults, set it anywhere and display it It is a memorandum

code

//Show all data stored in UserDefaults
    for (key, value) in UserDefaults.standard.dictionaryRepresentation().sorted(by: { $0.0 < $1.0 }) {
      print("\(key) -> \(value)")
    }

Recommended Posts

Show all data stored in UserDefaults
How to clear all data in a particular table
[Swift] Use UserDefaults to save data in the app
Use collection_select to pull down the data stored in Active_Hash
Importing Excel data in Java 2
Import Excel data in Java
Swift MPMediaItem, show all properties
eclipse all in one installation
Importing Excel data in Java 3