I am playing a background sound using the AVAudioPlayer Framework. I have a play button and a pause button. It works, but whenever I switch views and return to the main menu, it stops working.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
-Measure your music run and then set NSTimer with music run time and set timer to the audio start method.pass your flag to the second view do same thing.