I browsed through all kinds of post related to this topic but the answers just do not really help. I used this tutorial to implement recording of audio files and playback. What
You need to stop recording in order to save the data to the file permanently:
[recorder stop];