Xcode: directory file for simulator Iphone

后端 未结 8 1267
[愿得一人]
[愿得一人] 2021-01-30 03:25

i want to write a string in a file \"file.txt\": this file in my project (for Iphone) is inside Resources; I try to write a string in this file but it don\'t work, I show my cod

8条回答
  •  情书的邮戳
    2021-01-30 04:15

    The Documents directory for your app in the simulator is located at;

    ~/Library/Application Support/iPhone Simulator/YOUR-IOS-VERSION/Applications/UNIQUE-KEY-FOR-YOUR-APP/Documents
    

提交回复
热议问题