I have a button class - when the button is clicked, the playFile method of the MyAudio class is called. So my question is, its trivial to call the playFile method from the button class, but how do I call the method displayStopButton from the initiator class?
button class
- (void)myButtonClicked: (id)sender
{
[MyAudio playFile];
}
-(void)enablePlayButton
{
// test
}
MyAudio class
-(BOOL)playFile{
// Init AVAudioPlayer
}
- (void)audioPlayerDidFinishPlaying: (AVAudioPlayer*)player successfully: (BOOL)flag
{
// make a call back to calling class????
}