How to add folders to the iOS application document directory?

How to add folders to the iOS application document directory? thanks

+4
source share
2 answers

Most file operations are performed using the NSFileManager class. To create a new directory, use this method:

 -[NSFileManager createDirectoryAtPath:withIntermediateDirectories:attributes:error:] 

Apple documentation here: Apple Reference Documents -createDirectoryAtPath

+7
source

Yes.

Although I suspect your question was “like me” instead of “May I”

Check out the NSFileManager class link for creating folders.

+6
source

All Articles