Changes

IOS 8 Data Persistence using Archiving and Swift

2 bytes added, 16:40, 14 April 2015
no edit summary
.UserDomainMask, true)
let docsDir = dirPaths[0] as ! String
dataFilePath =
docsDir.stringByAppendingPathComponent("data.archive")
let dataArray =
NSKeyedUnarchiver.unarchiveObjectWithFile(dataFilePath!)
as ! [String]
name.text = dataArray[0]
address.text = dataArray[1]