Suppose I have a parent class that implements a protocol:
@interface GameViewController : UIViewController<GamePrizeDelegate> {
...
}
And then I make subclasses of it:
@interface TennisViewController : GameViewController {
...
}
@interface SoccerViewController : GameViewController {
...
}
Do I have to include the GamePrizeDelegate also in the subclasses? Are the protocols inherited as well?
Thanks!
Referring to Apple’s documentation: Your subclass does inherit the adoption of the protocol, so you don’t have to adopt it again.