About Tempory Directory

Tempory directory is a "Tmp" directory which is the same level with the app, but I find it still have sth I mistake:

 

1 The files in Tmp won't be removed when the app is resign to back ground, in face, the files will be removed only when the class instance which operate in Tmp directory is release. I test it in simulator.

When the instance is release, iOS will remove the files only create by the instance. if we change the file name before iOS removed it, it will never be removed.

2 Tmp can not be removed, but you can remove the files in it.

3 I also suggestion you to remove files yourself on resign event for security concern.

你可能感兴趣的:(Directory)