Need to show controls and wait for sounds to play in sequence ?

I'm developing an app where I need to un-hide labels and play sounds in sequence.


label1.hide = NO;
play sound 1
wait for sound to finish

label2.hide = NO;
play sound 2
wait for sound to finish
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Multimedia Support

The first example from that link create a sound from a file, then (few lines below) you will see the code playing it. It works.
Here is a tutorial:
How to Play a Short Sound in iPhone Code

It is an easy stuff and everything will work for you in few minutes.

Here is AVAudioPlayer:

Tutorial about this approach:
How To Play Sounds In Your iPhone
mindwarpltdAuthor Commented:
But none of these show me how to wait for the the sound file to finish before the next one is played
Use the delegates.
It was not obvious in your question.
Let me know if you will not find it the links I have posted.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.