Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6002195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:56:35+00:00 2026-05-23T00:56:35+00:00

As I go through apple documentation, I can’t see a way to open Game

  • 0

As I go through apple documentation, I can’t see a way to open Game Center where the first screen is the where the user can choose a leaderboard.

I know I can open a specific leaderboard screen , but I want to open the screen that let the user choose one. is that possible ?

This is my code currently:

GKLeaderboardViewController *viewController = [[GKLeaderboardViewController alloc] init];
        viewController.leaderboardDelegate = self;
        // Present leaderboard with the user's options saved from prevous launch
        viewController.category = self.category;
        viewController.timeScope = self.timeScope;

        [parent presentModalViewController:viewController animated:YES];

Thanks!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:56:36+00:00Added an answer on May 23, 2026 at 12:56 am

    Here’s an undocumented workaround, but which was approved in multiple games I worked on:

        GKLeaderboardViewController *viewController = [[GKLeaderboardViewController alloc] init];
        viewController.leaderboardDelegate = self;
    
        [viewController popViewControllerAnimated:NO];
        [parent presentModalViewController:viewController animated:YES];
        [viewController release];
    

    Explanation:

    • GKLeaderboardViewController is a subclass of UINavigationController
    • A particular category’s view controller is automatically on top of leaderboard view controller’s navigation stack
    • Before display, you can already modify the navigation stack
    • By not animating, popping occurs instantly, and before the view controller is even presented.

    You can skip setting the category and time scope since you don’t need them (you won’t be displaying a particular “category’s” view controller). Even if you don’t set it, leaderboard view controller will be pushing default view controller on top.

    I have additionally released the viewController variable (the leaderboard view controller), since parent view controller will be taking ownership of the object. Not releasing it therefore creates a memory leak and may have other unintended consequences.


    iOS 6 and later have the GKGameCenterViewController class. Weak-link to GameKit and test for presence of this class with NSClassFromString(@"GKGameCenterViewController") != nil. Then, use it as usual.

    Instantiate this class instead of the GKLeaderboardViewController and set its viewState property to GKGameCenterViewControllerStateLeaderboards to have leaderboards show immediately.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have downloaded sample code from Apple Center.I also have gone through following question:
I was going through Apple's documentation and I saw something like this (void (^)(void))
I'm reading through Apple's documentation on CA, and I was trying to do a
I am going through the Apple provisioning profile walkthrough documentation to create the binary
I've looked through the Apple documentation but have seen no mention of how to
I've been reading through the adobe pdf spec, along with apple's quartz 2d documentation
I have gone through the documentation: https://web.archive.org/web/20130309051214/http://developer.apple.com/library/ios/documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/GestureRecognizer_basics/GestureRecognizer_basics.html#//apple_ref/doc/uid/TP40009541-CH2-SW2 I am trying to implement the check
I have been through the Apple Developer guides and tutorials and I been through
I went through the example from apple MoviePlayer on iPhone Im trying to overlay
I'm running through the Your Second iOS App tutorial on Apple, and I'm on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.