Users Pricing

forum

home / developersection / forums / how do we create a temporary file in ios

How do we create a temporary file in iOS

Tarun Kumar 2878 05 Sep 2015

In C# we could easily create a temporary file and get its name using this function:

Path.GetTempFileName();

 

This function would create a file with a unique name in the temporary directory and return the full path to that file.

In the Cocoa API's, the closest thing we find is: NSTemporaryDirectory

We are missing something obvious or is there no built in way to do this?


Tarun Kumar

Other


1 Answers