// 播放音樂oop
NSString *path = [[NSBundle mainBundle] pathForResource:@"1670" ofType:@"mp3"];spa
NSError * error;it
self.avaPlayer= [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path]error:&error];io
self.avaPlayer.volume = 1;class
[self.avaPlayer prepareToPlay];file
[self.avaPlayer setNumberOfLoops:100];error
[self.avaPlayer play];di