let defaults = UserDefaults.standard
defaults.set(NSDate(), forKey: "loginDate")
let memberId = data["member_id"] as! Int
defaults.set(NSNumber(value: memberId ), forKey: "memberId")
defaults.set(data["reg_phone"], forKey: "regPhone")
defaults.set(data["reg_phone"], forKey: "recordPhone")
defaults.set(data["ship_name"], forKey: "shipName")
defaults.set(data["user_name"], forKey: "userName")
defaults.synchronize()
Post
Replies
Boosts
Views
Activity
Because of the word limit, I added some code