I've been trying for a few days now to get Game Center leaderboard into my game but can't seem to understand how apple documentation and books explain it. Decided to now ask here so i can get specific answers to my problems. What i'm wanting is the least amount of code possible that will integrate Game Center leaderboards which will automaticaly submit your highest score. Apart from authenticateUser(don't even know how to do this right), i have no idea what other methods i need. This game is my first coding project, and as i am self teaching myself, asking here is my only real way of tackling problems. That being said, i would greatly appreciate anyone willing to show me how to implement leaderboards.
- (void) showLeaderboard
{
GKGameCenterViewController *leaderboardController = [[GKGameCenterViewController alloc] init];
if (leaderboardController != nil)
{
leaderboardController.leaderboardCategory = self;
[self presentViewController: leaderboardController animated: YES];
}
}