2015-01-15 94 views

回答

0

您應該看看AVAudioRecorder類,它是AVFoundation框架的一部分。

從蘋果文檔:

An instance of the AVAudioRecorder class, called an audio recorder, 
provides audio recording capability in your application. 
Using an audio recorder you can: 

- Record until the user stops the recording 
- Record for a specified duration 
- Pause and resume a recording 
- Obtain input audio-level data that you can use to provide level metering 

In iOS, the audio being recorded comes from the device connected by the 
user—built-in microphone or headset microphone, for example. 
In OS X, the audio comes from the system’s default audio input device as 
set by a user in System Preferences. 

欲瞭解更多信息click here