草庐IT

didRequestMatchWithPlayers

全部标签

ios - 如何触发【GKLocalPlayerListener播放器: didRequestMatchWithPlayers:]

GKInviteEventListenerProtocol包含必须实现的以下方法:-(void)player:(GKPlayer*)playerdidRequestMatchWithPlayers:(NSArray*)playerIDsToInvite但不清楚如何触发这个方法。文档说:CalledwhenthelocalplayerstartsamatchwithanotherplayerfromGameCenter.(required)Whenthismethodiscalled,thegameislaunchedfromGameCenterandstartsthematchmaki