Run into an interesting problem and not sure how to manage it.
What would be the best way to handle the AVAudioPlayer callback method, audioPlayerDidFinishPlaying, if, for example, an instance of AVAudioPlayer is created with a callback for when the audio has finished but the object containing the AVAudioPlayer (and callback) is deallocated before the audio finishes?
This is my current situation where the app crashes consistently as a now non-existant callback method is trying to be called.
Thinking about it, the answer would probably be relevant across the board of callbacks. There must be some way to either destroy or cancel callback methods.