I want to play a music file on my app. I have tried to use AVAudioPlayer, but it doesn't work on Xcode 9.0.
NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"background" ofType:@"mp3"]];
AVAudioPlayer *player = [[AVAudioPlayer alloc] initWithContentsOfURL:url error:nil];
© 2016 Powered by mzan.com design MATCHINFO