我在 AVFoundation 框架中使用 AVAudioRecorder。 我想知道如何检查麦克风设备是否已插入(在 iPod Touch 上)?
BOOL inputAvailable = [[AVAudioSession sharedInstance] inputIsAvailable];