2014-11-22 45 views

回答

0

我知道这是一个古老的问题,但我只是碰到它,并认为我会提供我的两分钱。

我这是怎么实现该功能

GKMatchmaker.sharedMatchmaker().matchForInvite(invite, completionHandler: { (match: GKMatch!, error: NSError!) -> Void in 

    if error != nil { 
     // error out 
    } 

    if match != nil { 

     // success 
    } 
})