简体   繁体   中英

How do I add folders into an iOS application documents directory?

How do I add folders into an iOS app documents directory? thanks

Most file operations are done via the NSFileManager class. To create a new directory use this method:

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

Apple documentation here: Apple reference docs -createDirectoryAtPath

yes.

Though I suspect your question was 'how do I' instead of 'Can I'

Check out the NSFileManager class reference to create folders.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM