Horje
save date to userdefaults swift Code Example
save date to userdefaults swift
//save as Date
UserDefaults.standard.set(Date(), forKey: key)

//read
let date = UserDefaults.standard.object(forKey: key) as! Date
let df = DateFormatter()
df.dateFormat = "dd/MM/yyyy HH:mm"
print(df.string(from: date))




Swift

Related
hide status bar ios Code Example hide status bar ios Code Example
add shadow to UIButton swift Code Example add shadow to UIButton swift Code Example
how to get index path cell collection view from ui longpress gesture swift Code Example how to get index path cell collection view from ui longpress gesture swift Code Example
uitableviewcell automatic height Code Example uitableviewcell automatic height Code Example
change button text in swift Code Example change button text in swift Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10