user591375 user591375 - 2 years ago 134
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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download