ViewController1.h
@interface ViewController : UIViewController
@property AVAudioPlayer *audioPlayer;
@end
ViewController1.m
@synthesize audioPlayer;
...
audioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL];
[audioPlayer play];
如何从 ViewController2 类中的方法中停止音乐?