If i want to extend a class like AVAudioPlayer, whats the best way to also add another method to AVAudioPlayerDelegate?
Should I make a category for it, do I extend it?
If I extend it do I then also have to make sure to overwrite the actual delegate getter/setter? How would I extend the protocol?
The following gives me errors
@protocol AudioTrackDelegate : AVAudioPlayerDelegate {
- (void)foo;
}
@end
@interface AudioTrack : AVAudioPlayer {
}
@end
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…