How to make music plays from begging of the app until a viewcontroller has been presented?

Posted by Carlos Vargas on Stack Overflow See other posts from Stack Overflow or by Carlos Vargas
Published on 2010-05-10T19:26:57Z Indexed on 2010/05/10 19:44 UTC
Read the original article Hit count: 524

Hey guys I have a problem with an app Im making. The thing is I want to add it some background music, but I just want to add it in the main view.

My app has 3 view controllers: Main View Controller, Second View Controller and Third View Controller.

What I want is to start the music in the Main View Controller and stop it when the Third View Controller is presented.

I think I have to start the music in my app delegate and from there stop it, am I right?

I hope someone's got the answer.

Best Regards

Carlos Vargas

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uiviewcontroller