0
내가보기에서 종료가 나는 딸랑 딸랑을 시작하고 내가이보기에서 돌아올 때 나는이 징글 (WMA)IOS : 내가보기에 돌아올 때 오디오를 중지
IBAction를 내가 출구 내가 가진 중지 할 때 이 코드 :
NSString *path = [NSString stringWithFormat:@"%@/%@",
[[NSBundle mainBundle] resourcePath],
@"file.wav"];
NSURL *filePath = [NSURL fileURLWithPath:path isDirectory:NO];
AudioServicesCreateSystemSoundID((CFURLRef)filePath, &soundID);
AudioServicesPlaySystemSound(soundID);
하지만 난
AudioServicesRemoveSystemSoundCompletion(soundID);
AudioServicesDisposeSystemSoundID(soundID);
viewWillAppear
에 작성하려고하지만, 작동하지 않는 뷰에 돌아 왔을 때, 당신이 나를 도와 드릴까요?