I finally understood the problem.
Well, if you use the GKTurnBasedMatchmakerViewController , then it steals a delegation from your current delegate.
He probably has something like:
[GKTurnBasedEventHandler sharedTurnBasedEventHandler].delegate = self;
This makes sense since the viewcontroller needs to be updated when changes come from the gamecenter, so it becomes a delegate to the GKTurnBasedEventHandler .
If you want to return the delegation to your own object, although you should put this line:
[GKTurnBasedEventHandler sharedTurnBasedEventHandler].delegate = self;
At the very top of the entire function in the GKTurnBasedMatchmakerViewControllerDelegate protocol.
Theis egeberg
source share