Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有稳定的代码,允许我显示所有用户照片,我需要对音频文件做同样的事情。 是否可以使用资产库框架枚举音频项目,例如照片,或者我必须使用任何其他库?
提前致谢。
可以使用
MPMediaQuery * query = [MPMediaQuery songsQuery]; //if you need to enumerate songs for(MPMediaItem * item in query.items){ .... }