Changes

Jump to: navigation, search

Working with Directories in Swift on iOS 8

4 bytes added, 21:45, 13 April 2015
no edit summary
.UserDomainMask, true)
let docsDir = dirPaths[0] as ! String
</pre>
.UserDomainMask, true)
let docsDir = dirPaths[0] as ! String
if filemgr.changeCurrentDirectoryPath(docsDir) {
.UserDomainMask, true)
let docsDir = dirPaths[0] as ! String
let newDir = docsDir.stringByAppendingPathComponent("data")
if let fileattribs = attribs {
let type = fileattribs["NSFileType"] as ! String
println("File type \(type)")
}

Navigation menu