title: Saving a recorded AVAudioRecorder sound file: Now what? ( iOS, Xcode 4 )
body: <p>In my App, I want the user to be able to record one sound file and play it back, and then save the sound file for later. I used <a href="http://www.techotopia.com/index.php/Recording_Audio_on_an_iPhone_with_AVAudioRecorder_%28iOS_4%29" rel="nofollow">this tutorial</a> to set up the play and record interface, but this tutorial leaves out a key part: how do I permanently save the sound to the disk?</p>
  
  <p>Also, while you're here, how do I set a maximum time for the sound file to record? I don't want sound files exceeding 30 seconds in length.</p>
  
  <p>Thanks, hopefully I can get this all sorted out.</p>