We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm using the progress bar to count down to 0 – once the timer is finished, I want to trigger a method in my View Controller.
Do you have any sample code that will break out of your thread to call a function on the main queue?
Here is my current code:
[MCUtil runOnAuxiliaryQueue:^{ while(currentTime < timeLimit && self.isRecording){ [MCUtil runOnMainQueue:^{ currentTime += 0.01; self.audioProgress.percentage = (float)currentTime/timeLimit; }]; [NSThread sleepForTimeInterval:0.01]; } NSLog(@"reached end of time limit"); // calling method here has delay? }];
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm using the progress bar to count down to 0 – once the timer is finished, I want to trigger a method in my View Controller.
Do you have any sample code that will break out of your thread to call a function on the main queue?
Here is my current code:
The text was updated successfully, but these errors were encountered: