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.
我需要在项目中添加 AVAudioPlayer 框架但没有找到它。它在 iOS 6 中是否已弃用?如果是,那么我应该用什么来播放音频文件 mp3。mediaplayer 框架是否可以播放音频文件 mp3。
AVAudioPlayer 框架
不,不。AVAudioPlayer 是一个类,而不是一个框架。如果你打算使用这个类,你必须链接到 AVFoundation框架——如果你使用 Xcode,你可以在“与库链接”部分的“构建阶段”选项卡上添加这个框架。