2014-11-22 100 views

回答

0

我知道這是一個古老的問題,但我只是碰到它,並認爲我會提供我的兩分錢。

我這是怎麼實現該功能

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

    if error != nil { 
     // error out 
    } 

    if match != nil { 

     // success 
    } 
})