AVAudioRecorder stops working when writing to /dev/null on iPhone 5s with iOS 7
问题 I have an app that monitors the background audio level without recording to a file. I use the trick of writing to /dev/null to accomplish this. This code has worked on the iPhone 3GS with iOS 6, iPhone 4 with iOS 6 and iOS 7, and in the simulator with iOS 7 and iPhone Retina (4-inch 64-bit). When I try it on a real iPhone 5s, however, the recorder seems to capture audio for a moment, and then silently dies. This is the code: // Inititalize the audio NSURL *url = [NSURL fileURLWithPath:@"/dev