MPMediaItemPropertyAssetURL returning null only for iPhone 5s

前端 未结 2 773
[愿得一人]
[愿得一人] 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条回答
  •  梦毁少年i
    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.

提交回复
热议问题