Getting iPhone Documents Directory. Is NSSearchPathForDirectoriesInDomains still the only way?

后端 未结 3 1045
星月不相逢
星月不相逢 2021-02-04 13:46

Is the NSSearchPathForDirectoriesInDomains function still the best way to get the path of the iPhone Documents directory? I ask because most topics I see on this are d

3条回答
  •  孤城傲影
    2021-02-04 14:28

    This works for me, pretty short and sweet

       #define kDOCSFOLDER [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"]
    

    Cheers!

提交回复
热议问题