Request a Turn-Based Match
Before your players can start or join a multiplayer Game Center game, they first need to make a request. To set up a multiplayer game request, you can use the GKTurnBasedMatchmakerViewController class and its corresponding GKTurnBasedMatchmakerViewControllerDelegate protocol. You can also create a custom match controller, but that goes beyond the scope of this book, so you’ll stick with the standard matchmaking UI.
The GKTurnBasedMatchmakerViewController class is responsible for showing the standard interface where players can manage their multiplayer games. To present this view controller, you’ll use another custom notification, similar to what you created in the previous chapter.
Preparing for the Turn-Based Matchmaker ...
Get Apple Game Frameworks and Technologies now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.