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
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- back button text does not change
相关文章
- 现在使用swift开发ios应用好还是swift?
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- xcode 4 garbage collection removed?
- Unable to process app at this time due to a genera
- How can I add media attachments to my push notific
- How do you detect key up / key down events from a
- “Storyboard.storyboard” could not be opened
To pause the recording, use the following methods on
AVAudioRecorder
:and to resume, use:
It's all here in the docs...
After initializing and creating an object of
AVAudioRecorder
, lets sayAVAudioRecorder *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.