0
有人知道如何正確編寫Game Center邀請處理嗎?我找不出這條線的正確語法:GKMatchmaker.matchForInvite的Swift語法
GKMatchmaker.matchForInvite (Invitation:GKInvite!, completionHandler .....
請幫助,我卡住了!
有人知道如何正確編寫Game Center邀請處理嗎?我找不出這條線的正確語法:GKMatchmaker.matchForInvite的Swift語法
GKMatchmaker.matchForInvite (Invitation:GKInvite!, completionHandler .....
請幫助,我卡住了!
我知道這是一個古老的問題,但我只是碰到它,並認爲我會提供我的兩分錢。
我這是怎麼實現該功能
GKMatchmaker.sharedMatchmaker().matchForInvite(invite, completionHandler: { (match: GKMatch!, error: NSError!) -> Void in
if error != nil {
// error out
}
if match != nil {
// success
}
})