Handling Game Center authentication

前端 未结 4 1898
情书的邮戳
情书的邮戳 2021-02-06 13:41

According to the Apple docs we should do something like this to handle GC authentication:

- (void) authenticateLocalUser
{
    GKLocalPlayer *localPlayer = [GKLo         


        
4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-06 14:37

    The Game Center DELEGATE method: 'gameCenterViewControllerDidFinish' is called automatically when the Game Center viewController is 'Done'. (This is a compulsory method for the delegate.)

    You can put whatever you need for your app, in this method.

提交回复
热议问题