mpmediaitemcollection

How Do You Obtain the “Purchase Date” or “Date Added” from MPMediaItems in iPod Library

爱⌒轻易说出口 提交于 2019-11-28 08:56:14
问题 As users download new songs into their iPod Music library from the iTunes Store, I would like to programmatically list those songs in a table view. Is it possible to obtain the "Date Added" or "Purchase Date" from the MPMediaItemCollection? I see there are property keys such as play count and last played date. I know the data exists because it can be viewed in iTunes, but I am not finding it. Any suggestions on where to find this or how to derive it? 回答1: As you can see in Apple Documentation