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 7558577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:24:19+00:00 2026-05-30T12:24:19+00:00

I got a lot of problems implementing Game Center. My game its based on

  • 0

I got a lot of problems implementing Game Center.

My game its based on Cocos2d But my Menu I do it with XIB. So the main window i make it like this:

  • UIWindow
  • UINavigationController
    • Navigation Bar
    • UIViewController [Menu]
    • UINavigationItem

When i click on Play I create a new View Controller called Menu2Game.h.m.xib And i add the OpenGL to this view, and then Menu2Game add it to my menu View

    menu2Game = [[Menu2Game alloc] initWithNibName:@"Menu2Game" bundle:nil];
    [menu2Game setView:glView];
    [self.view addSubview: menu2Game.view];

I don’t know why I can’t add it directly… But when I click on leaderboards I do the same thing. Presenting the view directly on Menu doesn’t work.

    UIViewController *tempView = [[UIViewController alloc] init];
    [self.view addSubview:tempView.view];
    [[GameCenter sharedGameCenter] showLeaderboard:tempView];

And when I call my leaderbords its this code.

if ([self isGameCenterAvailable]) {
    GKLeaderboardViewController *leaderboardController = [[[GKLeaderboardViewController alloc] init] autorelease];

    if (leaderboardController != nil) {
        screen = screen2;
        leaderboardController.leaderboardDelegate = self;       
        [screen presentModalViewController: leaderboardController animated: YES];
        [leaderboardController setCategory:@"015.1"];leaderboardController.view.frame.origin.y);
        leaderboardController.view.bounds = CGRectMake(0, 0, 480, 320);
        leaderboardController.view.center = CGPointMake(240, 160);
    }

}

The problem here its that doesn’t respects the application Orientation

If its in Landscape. It start in 80, 320, And finish in 480, 320
It appears and you can use it but appears not in —-> this direction it moves like with 45 degrees

And if you hold the phone in Portrait [Any]. It appears only a small fragment of the leader boards, Facing the real orientation, but the coordinated are different it takes the ones you are holding. And in my plist its not permuted portrait.

How could i fix this? I got 1 week to finish this game and this is the only thing I miss.

Thanks to everybody

  • 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-30T12:24:20+00:00Added an answer on May 30, 2026 at 12:24 pm

    I don’t know why but just create should rotate and return true.., and eliminate all the code that modify the game center

    this one:

        [leaderboardController setCategory:@"015.1"];leaderboardController.view.frame.origin.y);
        leaderboardController.view.bounds = CGRectMake(0, 0, 480, 320);
        leaderboardController.view.center = CGPointMake(240, 160);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a lot of small DLLs which I would like to make into
I've got a lot controller in my Codeigniter apps, ex: Signup, Profile, Main, etc..
After I had a lot of problems with preemptive authentication , I got it
I have read and learned a lot here, got a lot of problems solved
I've got a lot of mysql data that I need to generate reports from.
I've got a LOT of tests written for a piece of software (which is
I've got a lot of similar oracle jobs I need to create, and I'd
I've got a lot of pages in my site, I'm trying to think of
Pretty self-explanatory, I tried google and got a lot of the dreaded expertsexchange, I
I try to parse RSS chaanal with simple-rss lib. Unfortunately I got a lot

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.