Use only Automatch in Gamecenter

How to remove friend invitation button from GKMatchmakerViewController ?

When printing all subzones in it, I see only the navigation bar.

I represent it like this:

 GKMatchmakerViewController *mmvc = [[GKMatchmakerViewController alloc] initWithMatchRequest:request]; mmvc.matchmakerDelegate = self; [viewController presentViewController:mmvc animated:YES completion:nil]; 
+6
source share
1 answer

Unfortunately, this is not possible; I myself studied the removal of the quick match button and found that it was impossible.

However, you can customize your own invitation screen, check out the Implementing the User Interface section in the Time Match Matches section of the iOS documentation. Too many code examples to show here, I just have to provide a description and a link:

https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/GameKit_Guide/Matchmaking/Matchmaking.html

DESCRIPTION

Implementing a full compliance user interface can be as simple as displaying a network progress indicator until auto-negotiation is complete or as complex as implementing a full customizable view controller that reproduces standard behavior. The latter is potentially a significant investment in programming time, because for this you need to enable support for all of the following:

  • Invite certain players to match
  • Listening to responses from invited players
  • Search for nearby players (available via Wi-Fi or Bluetooth).
+1
source

Source: https://habr.com/ru/post/988297/


All Articles