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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:16:01+00:00 2026-05-25T00:16:01+00:00

I am working with the iPad at the moment and am using Cocos2D. Up

  • 0

I am working with the iPad at the moment and am using Cocos2D. Up until now I have just been testing with the default view when dealing with Game Center. I am attempting to now set it up as I want it, which is using either full screen or PageSheet (which is shown in the image).

My question(s) is fairly simple (at least in the asking). Why exactly is it doing that? I can not figure out how to access that “wooden” frame that is drawing over top of achievement view.

Example image

Here is the code I have been using (including random stuff I have been trying) to get to a bigger view.

- (void)showAchievements:(id)sender
{   
    GKAchievementViewController *achievements = [[GKAchievementViewController alloc] init];
    if (achievements != nil)
    {
        achievements.achievementDelegate = self;

        tempVC = [[UIViewController alloc] init];
//      tempVC.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;

//      tempVC.interfaceOrientation = [[UIDevice currentDevice] orientation];

        [achievements shouldAutorotateToInterfaceOrientation:UIInterfaceOrientationLandscapeLeft];
        [achievements shouldAutorotateToInterfaceOrientation:UIInterfaceOrientationLandscapeRight];

        [tempVC shouldAutorotateToInterfaceOrientation:UIInterfaceOrientationLandscapeLeft];
        [tempVC shouldAutorotateToInterfaceOrientation:UIInterfaceOrientationLandscapeRight];


//      achievements.navigationController.modalPresentationStyle = UIModalPresentationPageSheet;
//      tempVC.wantsFullScreenLayout = YES;
        tempVC.modalPresentationStyle = UIModalPresentationPageSheet;
        tempVC.view.superview.bounds = CGRectMake(0, 0, winSize.width, winSize.height);
//      tempVC.view.superview
//      tempVC.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
//      achievements.wantsFullScreenLayout = YES;
        achievements.modalPresentationStyle = UIModalPresentationPageSheet;
//      achievements.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
        achievements.navigationController.modalPresentationStyle = UIModalPresentationPageSheet;
//      achievements. = CGRectMake(0, 0, winSize.width, winSize.height);

        [[[CCDirector sharedDirector] openGLView] addSubview:tempVC.view];
        [tempVC presentModalViewController:achievements animated:YES];
    }
}

My understanding of UIKit is extremely limited. I use Cocos2D and Box2D and pretty much nothing else (up until now anyway). Please, any help you can provide will be very much appreciated. If you could simply show me how this would be done properly (without all the junk code I have in there) that would be perfect.

Thank you 🙂

  • 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-25T00:16:01+00:00Added an answer on May 25, 2026 at 12:16 am

    I just tried to do this with UIModalPresentationPageSheet and I see the same result, it’s not just you. The “correct” way to do this is not to change the size of the modal view! 🙂 Apple’s UI designers have chosen their desired presentation style & size of the achievements view; it’s best not to mess with that, for consistency between games.

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

Sidebar

Related Questions

I'm working on an iPad app using 3.2 sdk. I'm dealing with obtaining the
I have been working on ipad application. In this application I have several views.
Just a silly question that just cant figure out. Ive been working on iPad
I am working on an iPad app with a split view controller. I have
At the moment I'm working on an iPad explore game which has a hexagon
I'm working on a UINavigationController driven iPad app (testing in the simulator). There are
Working on a project at the moment and we have to implement soft deletion
Now am working for iPhone/iPad applications. Am interesting to develop apps for Mac OS
I'm working on an iPad app, it has a few videos within views using
I'm working on a iPad app that is mainly a web view. It is

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.