你如何将音频输入iPhone应用程序?(How do you get audio into an iPhone app?)

如何显示像imagepicker的音频文件? 我正在使用MPMediaplayer课程,但我无法让它工作。 我的要求是单击tableviewcell,并使音频文件看起来像一个imagepicker。

How do you display audio files like an imagepicker? I'm using the MPMediaplayer class but I can't get it to work. My requirement is to click on a tableviewcell, and have audio files appear like an imagepicker.

最满意答案

简单获取所有音频文件的路径。 并仅从路径中解析名称。 将所有名称存储在数组中并显示在UITableView中。 刚刚阅读了有关如何使用nsfilemanager的内容。

simple get the path of all audio files. and parse the name only from the path. store all the names in array and display in UITableView. just read about how to use nsfilemanager.

你如何将音频输入iPhone应用程序?(How do you get audio into an iPhone app?)

如何显示像imagepicker的音频文件? 我正在使用MPMediaplayer课程,但我无法让它工作。 我的要求是单击tableviewcell,并使音频文件看起来像一个imagepicker。

How do you display audio files like an imagepicker? I'm using the MPMediaplayer class but I can't get it to work. My requirement is to click on a tableviewcell, and have audio files appear like an imagepicker.

最满意答案

简单获取所有音频文件的路径。 并仅从路径中解析名称。 将所有名称存储在数组中并显示在UITableView中。 刚刚阅读了有关如何使用nsfilemanager的内容。

simple get the path of all audio files. and parse the name only from the path. store all the names in array and display in UITableView. just read about how to use nsfilemanager.