user591375 user591375 - 11 months ago 91
iOS Question

Keeping track of time while recording

I have an AVAudioRecorder that records sound. I also have a label. I would like to update the text on the label every second to show the recording time. How can I do this?


You can use the currentTime property of AVAudioRecorder (audioRecorder.currentTime) to get the time, as an NSTimeInterval, since the beginning of the recording which u can use to display on your label.