Swift: Retrieve LocalPlayer GC Score
<p>Below is my code for getting localplayer's game center score.</p>

<pre><code>if (GKLocalPlayer.localPlayer().authenticated) {
    GKLeaderboard.loadLeaderboardsWithCompletionHandler { objects, error in
        if let e = error {
            print(e)
        } else {
            let leaderboards = objects! as [GKLeaderboard]
            print(leaderboards)
            for leaderboard in leaderboards {
                print(leaderboard)
                print(leaderboard.localPlayerScore) // This prints nil
            }
        }
    }
}
</code></pre>

<p>I get <code>nil</code> for <code>print(leaderboard.localPlayerScore)</code> ,While I know for sure that local player has score saved on this leaderboard. Am I missing something?</p>