using ARC
Just a problem I've run into-
I have an SKScene in which I play a sound fx using SKAction class method
[SKAction playSoundFileNamed:@"sound.wav" waitForCompletion:NO];
Now when I try to go to background, no matter that the sound was over, apparently iOS is terminating my app due to gpus_ReturnNotPermittedKillClient
.
Now only when I comment this line and not running the action iOS runs it great in background (of course, paused, but without termination).
What am I doing wrong?
EDIT: iOS will not terminate the app if the line wasn't run- say, if it was in an if statement
that wasn't run (soundOn == YES)
or something like that, when the bool is false
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…