My application creates an NSData from a song from the iTunes library. I wan’t to write this to a file in the bundle ( the file doesn’t exists ). How do I create a file there?
My application creates an NSData from a song from the iTunes library. I wan’t
Share
stavash is right; you can’t save to the bundle. To save to the documents directory, do something like this:
And then to recover the contents of the file: