Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Handling cancel in GKMatchmakerviewcontroller

I am making a multiplayer feature to a game I made.

Everything is working, except when I am in matchmaking and both players are connected, if one person hits the "Cancel" button the other device gets no notice of the canceling.

On the other device it the words change to say "Disconnected" however none of the delegate methods are called.

How can I handle this?

like image 623
Wyetro Avatar asked Jun 01 '15 06:06

Wyetro


1 Answers

You should implement the GKMatchmakerViewControllerDelegate protocol.

like image 57
酷酷的哀殿 Avatar answered Sep 21 '22 21:09

酷酷的哀殿