我打得使用系統聲音......與系統ARC內存管理問題聽起來
NSString *path = [NSString stringWithFormat:@"%@%@",
[[NSBundle mainBundle] resourcePath],
@"/heartbeat.wav"];
//declare a system sound id
SystemSoundID soundID4;
//Get a URL for the sound file
NSURL *filePath = [NSURL fileURLWithPath:path isDirectory:NO];
//Use audio sevices to create the sound
AudioServicesCreateSystemSoundID((__bridge_retained CFURLRef)filePath, &soundID4);
//Use audio services to play the sound
AudioServicesPlaySystemSound(soundID4);
AudioServicesDisposeSystemSoundID(soundID4);
我不知道這是問題..但如果它與運行「分析」說到作爲潛在的泄漏。顯然,隨着應用程序越來越慢,越來越慢,因爲我在模擬器中運行了更多次。我已經找到了如何處理這個不使用弧的例子,但沒有用。任何建議將不勝感激。
你可以關閉ARC此文件作爲B計劃 – DGund
是啊,我想過這個問題...這將導致對事物的重大改寫我有它設置的方式就是一切。 –