Changes

Jump to: navigation, search
Saving the Data
if fileManager.fileExistsAtPath(sharedFilePath!) {
databuffer?.writeToFile(sharedFilePath!, atomically: true)
} else {
println("File does not exist - creating it")
fileManager.createFileAtPath(sharedFilePath!, contents: databuffer, attributes: nil)
}
 
sharedDefaults?.setBool(mySwitch.on, forKey: "switch")
}

Navigation menu