I am making an app that I want it to pick a song from the iPod music files then add it to the bundle files (documents folder) so that I can use it with the need to access the phones music list again.
I have managed to pick the song and get its ID but I don't know how to add a file to my bundles files using Swift.
I have found answers a bit similar to this question but its all since iOS 4 and using Objective C not Swift.
This is the code which has the files ID:
let u: NSURL? =
self.mediaItem!.valueForProperty(MPMediaItemPropertyAssetURL) as! NSURL?
if u == nil {
return
}