displaying time recorded while recording video
i'm working on an app that enables the user to capture video. however i'm
customising the user interface of the UIImagePickerController thus the
timer wouldn't be showing since i'm hiding the default controls. so i want
to display the time recorded live while the user is recording. how can i
do that? i tried this
timer = [NSTimer scheduledTimerWithTimeInterval:1 target:self
selector:@selector(updateLabel)
userInfo:nil repeats:YES];
but since the user will be able to pause. i should stop the counting or
pause it. how can i do that? besides i want to be able to present the time
in this format 00:00 [mm:ss]
Edit: figured out how to kill the timer by [timer invalidate]; i just
wanna represent it the right way. of if there is any alternative to using
NSTimer it will be highly appreciated.
No comments:
Post a Comment