Question

I want to copy the music files of iphone ipod library using MPMediaPicker. Actually using MPMediaPicker I am able to get the path of ipod music library but when I convert music file at url in NSData, the result is null. I doubt that is it possible to get the music file from ipod library. I am not sure as there is no exception or warning while I am trying to convert url item in NSData using [NSData datawithContentOfUrl:ipod-library-path].

If someone has any idea about this or any alternative to copy music files.

Was it helpful?

Solution

Your are getting Asset URLof music files.So it need to be converted into NSData to write into iphone library.

Refer Get video NSData from ALAsset url iOS link.

Now write data into iphone library.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top