I know there are many threads on this but.. i have a different problem to everyone else seems to have,
I have no errors or alerts of nothing but, it opens the app up in the simulator and just goes onto a black screen, then xcode pops back up again and it says:
at the bottom of the window, it also highlights and points at:
like this:
here is my
SoundEffect.h file
Code:
#import "SoundEffect.h"
@implementation SoundEffect
- (id)initWithContentsOfFile:(NSString *)path;
{
self = [super init];
if (self != nil) {
NSURL *filePath = [NSURL fileURLWithPath: path isDirectory:NO];
AudioServicesCreateSystemSoundID((CFURLRef)filePath, &soundID);
}
return self;
}
-(void)play {
AudioServicesPlaySystemSound(soundID);
}
@end
and i can upload the rest of the code if needed,
but have any ideas why its doing this?