How do you display controls for the AVAudioPlayer. I just want the stop-button at the bottom of the screen, but my code displays no controls at all. Ive been googling like a maniac for this, but nothing.
Code:
NSString *path = [[NSBundle mainBundle] pathForResource:soundPathName ofType:@"mp3"];
AVAudioPlayer *theAudio=[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL];
theAudio.delegate = self;
[theAudio play];