iphone Programming Glossary: mymusic
iOS SDK : playing music on the background and switching views http://stackoverflow.com/questions/8467533/ios-sdk-playing-music-on-the-background-and-switching-views I solve this Here is my code void viewDidLoad NSString music NSBundle mainBundle pathForResource @ 1music ofType @ mp3 myMusic AVAudioPlayer alloc initWithContentsOfURL NSURL fileURLWithPath music error NULL myMusic.delegate self myMusic.numberOfLoops.. @ 1music ofType @ mp3 myMusic AVAudioPlayer alloc initWithContentsOfURL NSURL fileURLWithPath music error NULL myMusic.delegate self myMusic.numberOfLoops 1 myMusic play IBAction scoreView ScoreViewController scoreView ScoreViewController.. @ mp3 myMusic AVAudioPlayer alloc initWithContentsOfURL NSURL fileURLWithPath music error NULL myMusic.delegate self myMusic.numberOfLoops 1 myMusic play IBAction scoreView ScoreViewController scoreView ScoreViewController alloc initWithNibName..
|