An object representing a challenge issued by the local player to another player.
- iOS 6.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
Players use the Game Center app to issue and view challenges. However, your game can also customize its challenge behaviors in a number of ways:
You can load the list of challenges issued to the local player by calling the
loadclass method. For example, you might do this to display the challenges in your game’s user interface.
Received Challenges(completion Handler:)
You never subclass the
GKChallenge class directly. However, subclasses of
GKChallenge represent specific kinds of challenges. Two challenge types exist: