MPMediaItemPropertyAssetURL returning null only for iPhone 5s

前端 未结 2 772
[愿得一人]
[愿得一人] 2021-02-08 03:42

I have been using the following code to extract the asset url from the MPMediaItem object returned from the MPMediaItemPickerController so that I can copy music files from a use

相关标签:
2条回答
  • 2021-02-08 04:16

    I found out that the problem was the song I was trying to get the MPMediaItemPropertyAssetURL property for was actually not on my device. It was listed in the media library, but was actually still in iCloud. Once I downloaded the song to my device then the problem was solved. As much as I don't like answering my own question I took Jeroen's advice so that it can hopefully help others.

    0 讨论(0)
  • 2021-02-08 04:20

    We can add filter that does not show iCloud items with

    [mediaPicker setShowsCloudItems:NO];
    
    0 讨论(0)
提交回复
热议问题