I have two classes both for different UIViewController, in one of the classes i have 3 arrays, and i have added those arrays to a NSUserdefaults, now i want to call those/use those arrays in the other class, how do i do that?
let userDefaults = NSUserDefaults.standardUserDefaults()
userDefaults.setObject(name, forKey: "ThisContainsName")
userDefaults.setObject(surname, forKey: "ThisContainsSurname")
userDefaults.setObject(money, forKey: "ThisContainsBudget")
userDefaults.synchronize()
let xyzObjects = userDefaults.arrayForKey("xyz")?