Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mgjhowie

macrumors newbie
Original poster
Apr 7, 2014
1
0
Hi everyone.

Please can you push me in the right direction.

I have audio playing when a view controller loads, on completion of a question I have a button that reloads that view with a new random question.

The audio begins from the beginning.

I was under the impression that if I set a

Code:
-(void) viewWillDisappear:(BOOL) animated {
[audioPlayer pause];
}


that would pause it then if view appears set audioPlay to play...but doesn't seem to work.

Can somebody help me please?
 
Last edited by a moderator:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.