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);
但是當我在我嘗試在viewWillAppear中
AudioServicesRemoveSystemSoundCompletion(soundID);
AudioServicesDisposeSystemSoundID(soundID);
寫的,但它不工作的視圖返回,你能幫幫我嗎?