You implement the
GKChallenge delegate to control how challenges are displayed in your game.
- iOS 6.0–7.0Deprecated
- macOS 10.8–10.10Deprecated
- Mac Catalyst 13.0–13.0Deprecated
By default, Game Kit briefly displays a banner over your game when any of the following events occur:
The local player receives a challenge.
The local player completes a challenge.
A remote player completes a challenge issued by the local player.
Your event handler can override or extend this behavior:
It can prevent a banner from being displayed.
It can be notified when a player taps in a banner.
It can handle the events directly.