To Store array to NSUserDefault.

Here are the way that you can store and retrieved array of object with help of NSKeyArchive.

To Store array to NSUserDefault.
let placesData = NSKeyedArchiver.archivedDataWithRootObject(placesArray)
NSUserDefaults.standardUserDefaults().setObject(placesData, forKey: "places")

To Retrieved array from NSUserDefault.

let placesData = NSUserDefaults.standardUserDefaults().objectForKey("places") as? NSData

if let placesData = placesData {
let placesArray = NSKeyedUnarchiver.unarchiveObjectWithData(placesData) as? [Place]

Saving and Retrieving a String array to NSUserDefaults

Save array

let array = ["horse", "cow", "camel", "sheep", "goat"]

let defaults = NSUserDefaults.standardUserDefaults()
defaults.setObject(array, forKey: "SavedStringArray")
Retrieve array

let defaults = NSUserDefaults.standardUserDefaults()
let array = defaults.objectForKey("SavedStringArray") as? [String] ?? [String]()