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
}
})