开发者

How to access the iPhone Library folder programmatically

开发者 https://www.devze.com 2022-12-28 01:27 出处:网络
I heard in this TUAW Article that iPhone apps should stop using the Documents folder to s开发者_开发技巧tore files.Instead they should use the library folder.How do you access the Library folder to st

I heard in this TUAW Article that iPhone apps should stop using the Documents folder to s开发者_开发技巧tore files. Instead they should use the library folder. How do you access the Library folder to store files to it?

Thanks in advance!


Use the NSLibraryDirectory constant instead of the NSDocumentDirectory constant when you call NSSearchPathForDirectoriesInDomains. You would only have to worry about this if you actually do plan on writing an application that allows users to manage documents.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号