Reputation: 191
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.
Upvotes: 2
Views: 2364
Reputation: 38239
Your are getting Asset
URL
of 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
.
Upvotes: 1