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
that would pause it then if view appears set audioPlay to play...but doesn't seem to work.
Can somebody help me please?
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: