GKChallenge class is used to respond to events related to challenges sent or received by the local player.
- iOS 6.0–7.0Deprecated
- macOS 10.8–10.10Deprecated
To use it, call the
challenge class method to get the Singleton instance and assign an object that implements the
GKChallenge protocol to its
delegate property. You should assign a challenge event handler immediately after the local player has been authenticated, because your game may have been launched in response to a challenge notification being received by the player.