我想获得播放列表名称,但它给出了 Mpconcreteitem 的值。
let myQuery2 : MPMediaQuery = MPMediaQuery.playlists()
let playlist = myQuery2.collections
print(playlist!)
for album in playlist!{
print("---------------")
print("playlist \(String(describing: album.items)))")
if album.items.count == 0 {
} else {
print(album.items[0].value(forProperty: "MPMediaPlaylistPropertyName") )
}
}