SimpleAudioPlayer is a simple wrapper for AVAudioPlayer
To use it, make:
[SimpleAudioPlayer playFile:@"filename.mp3"];
or
[SimpleAudioPlayer playFile:@"filename.mp3" withCompletionBlock:^(BOOL finished) {
NSLog(@"Finished playing");
}];
Using CocoaPods:
Add to your Podfile
pod 'SimpleAudioPlayer'
then run
pod update
Drag the .m and .h file to your project, make sure you have the AVFoundation framework added to your project and off - you go!