1

I already googled this and decided to ask here coz results are not that relative.

I am designing an app that downloads mp3 music from a url. For example i have a music from a web directory, like http://www.example.com/music_folder/song.mp3, how can I download it and store it to documents folder in the iPhone using RestKit?

Furthermore, I want to add a slider to show the value changed while downloading the file.

Any references would help.

Thanks much!

ruelluna
  • 787
  • 1
  • 11
  • 30

1 Answers1

2

Why would you use RestKit to download it? RestKit is for interacting with REST web services, not for downloading arbitrary files.

I'd suggest you just use NSURLConnection: tutorial here.

For displaying the progress, look at this answer.

Community
  • 1
  • 1
Amy Worrall
  • 16,250
  • 3
  • 42
  • 65
  • Thanks for the link. I assumed RestKit to process all kinds of request. My bad. Your second link got me! Thank you so much! – ruelluna May 04 '12 at 09:06
  • 3
    I don't see why it is not okay to use RestKit to download files, especially when it comes with queue handling already etc ... RestKit implements NSURLConnection itself with lots of stuff around it to make it work properly. Using NSURLConnection is somewhat strange. I have been using it quite often and would prefer RestKit for loading files as well. – vinzenzweber May 22 '12 at 09:55