0

I want to cache a file added from the iPoad library. The url is: ipod-library://item/item.mp3?id=-8337982997312596354, I just want this file to write to temp/cache folder. How can I do that?

Bojan
  • 147
  • 2
  • 8

1 Answers1

0

See this or this question on how to get the NSData of the song and then use

writeToURL:atomically

of NSData to save it. You can get the path of the temp dir of your app with

NSTemporaryDirectory();

Community
  • 1
  • 1
FD_
  • 12,947
  • 4
  • 35
  • 62