I get this random error when I run my app on my iPhone.
First, I tap this method-
-(IBAction)playBeat1 {
NSString *path = [[NSBundle mainBundle] pathForResource:@"beat1" ofType:@"mp3"];
AVAudioPlayer* theAudio=[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL];
[theAudio play];
NSLog(@"Beatmaker");
}
Then when I tap this (It changes Views)-
-(IBAction) back{
[self dismissModalViewControllerAnimated:YES];
}
I get this error
UIView willMoveToSuperview:]: message sent to deallocated instance 0x1b1a20
Any Ideas?