Objective-C creating a text file with a string

后端 未结 3 1179
被撕碎了的回忆
被撕碎了的回忆 2020-12-30 01:05

I\'m trying to create a text file with the contents of a string to my desktop. I\'m not sure if I\'m doing it right, I don\'t get errors but it doesn\'t work either...

3条回答
  •  鱼传尺愫
    2020-12-30 01:54

    the problem is that the desktop directory string ends in nothing (no /). Check this out (on an iPhone) by using UIAlertview.

提交回复
热议问题