我想存储一些关于从 iTunes 库中抓取的项目的信息,并想知道在不产生任何问题(如覆盖或类似名称等)的情况下命名文件的最佳方法是什么......在我从那里的库中获取的媒体项目中是元数据,这可能是最好的名称。如果我使用 MPMediaItemPropertyPersistentID,我确信不会有任何相似的名称,但在同步/取消同步/同步周期内保证该值保持不变......有更好的方法吗?
MPMediaItemPropertyTitle
The title (or name) of the media item. This property is unrelated to the MPMediaItemPropertyAlbumTitle property. Value is an NSString object.
MPMediaItemPropertyPersistentID
The persistent identifier for the media item. Value is an NSNumber object containing a uint64_t (unsigned long long).
The value of the MPMediaItemPropertyPersistentID identifier persists across application launches and across syncs that do not change the sync status of the media item. The value is not guaranteed to persist across a sync/unsync/sync cycle.