简体   繁体   中英

AVAudiorecorder - no sound recording on iPhone 4 with iOS 6.0.1

I'm recording audio on every iOS simulator available and on some devices without any problems (for example iPhone 4 with iOS 5.1.1 or iPhone 4S with iOS 6.0.1), but recently I got feedback from my client telling me that audio recording on iPhone 4 with iOS 6.0.1 fails with no crash - they click record and nothing happens. Has anyone encountered that problem? Is this device specific? Or the usually working and widely used code for AVAudioRecorder needs to have some specific settings on this one device + system combination?

我也发生过这种情况,在我的情况下,PrepareToRecord()失败了,因为文件路径中的文件夹丢失了(尚未创建)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM