I have a need to play a brief sound 3 seconds or so (like a count down beep) before I perform some other action in an iOS application.
The use case is as follows:
User clicks a button... the beeps play (simple beeps using AudioServicesPlaySystemSound
... then the rest of the method is run.
I cannot seem to find out a way to block my method while the tones are playing.
I've tried the following:
[self performSelector:@selector(playConfirmationBeep) onThread:[NSThread currentThread] withObject:nil waitUntilDone:YES];
But the tones play synchronously while the rest of the method is performed.
What am I missing with the above call?