2
我想創建一個自定義GKMatchMakerViewController
如何自定義GKMatchmakerViewController
代碼與標準ViewController
(七彩氣泡):
if([GKLocalPlayer localPlayer].isAuthenticated){
GKMatchRequest *request = [[GKMatchRequest alloc] init] ;
request.minPlayers = 2;
request.maxPlayers = 2;
GKMatchmakerViewController *MM = [[GKMatchmakerViewController alloc] initWithMatchRequest:request];
MM.matchmakerDelegate = self;
[self presentViewController:mmvc animated:YES completion:nil];