我有一个按钮但是当我点击它时没有声音?有谁知道问题是什么?
-(IBAction)plus {
NSString *path = [[NSBundle mainBundle] pathForResource:@"beep-7" ofType:@"wav"];
AVAudioPlayer* theAudio=[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL];
theAudio.delegate = self;
[theAudio play];
}