Open main menu
Changes
WatchKit Extension and iOS App File and Data Sharing - A Tutorial
61 bytes removed
,
21:42, 27 April 2015
→
Saving the Data
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")
← Older edit
Newer edit →
Neil
Bureaucrat
,
administrator
34,333
edits