Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift userdefault set

UserDefaults.standard.set(true, forKey: "Key") //Bool
UserDefaults.standard.set(1, forKey: "Key")  //Integer
UserDefaults.standard.set("TEST", forKey: "Key") //setObject
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #swift #userdefault #set
ADD COMMENT
Topic
Name
7+2 =