我打得使用系统声音......与系统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
是啊,我想过这个问题...这将导致对事物的重大改写我有它设置的方式就是一切。 –