I have a single file named a.caf in the documents directory. I would like to rename it when user types into a UITextField and presses change (t
UITextField
Worked on Swift 2.2
func moveFile(pre: String, move: String) -> Bool { do { try NSFileManager.defaultManager().moveItemAtPath(pre, toPath: move) return true } catch { return false } }