Search code examples
iosgame-centergamekit

Check if a game center account is logged in


I am having some troubles with my game center implementation. Is there a piece of code that can check if the users game center account is logged in? Thanks


Solution

  • You check it like this:

    if([GKLocalPlayer localPlayer].isAuthenticated)
    {
      // user logged in
    }