How to pause and resume audio recording using AVAudioRecorder

avaudiorecorder, iphone, objective-c, recording

Solution

After initializing and creating an object of `AVAudioRecorder`, lets say `AVAudioRecorder *recorder`, simply call `[recorder record]` to record and `[recorder pause]` to pause.

If you are calling record and pause in separate method e.g. on click of different buttons then you need to make `recorder` a class level variable.

Problem

I need to pause and then resume an audio recording, I'm using AVAudioRecorder for my recording sessions... Anyone knows how to do this? Any help will be higly appreciated! Thanks a lot Peace Massy

Original source