Domanda

I'm capturing video using my app. I was thinking about saving the captured movie to Documents folder. I've explored project bundle and saw the captured movie is saved 2times. It's in tmp and also in my Documents folder. Will tmp folder be cleared or something? Or it's ok to keep the captured movie only in tmp? Thanks in advance.

È stato utile?

Soluzione

These files might be deleted at some point when your app is not running.

The /tmp/ directory is meant for files that you don't need to persist between launches of your app. The correct directory to use depends on the requirements of your app.

There's a good description of this in Apple's File System Programming Guide under iOS Standard Directories: Where Files Reside and Where You Should Put Your App’s Files.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top