Get temporary directory path

 Problem

I want to get the path the temporary directory, where I can store my temp files.



 Recipe


// Get temporary directory path

let path = NSTemporaryDirectory() as String
print(path)
				

Heard the news?

The Swift Cookbook for Swift 3 is at last here! For iBooks, Kindle and Paperback.
Hurry up - and Check it out! ;-)

 

 Playground