Advertisement
Guest User

Untitled

a guest
Aug 29th, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. - (IBAction)leaderboardsClicked:(id)sender{
  2. GKGameCenterViewController *gcViewController = [[GKGameCenterViewController alloc] init];
  3. gcViewController.gameCenterDelegate = self;
  4. if (gameCenterEnabled) {
  5. gcViewController.viewState = GKGameCenterViewControllerStateLeaderboards;
  6. gcViewController.leaderboardIdentifier = @"blockfall_scores";
  7. }else{
  8. gcViewController.viewState = GKGameCenterViewControllerStateAchievements;
  9. }
  10. [self presentViewController:gcViewController animated:YES completion:nil];
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement