Note that there are some explanatory texts on larger screens.

plurals
  1. POGameCenter notification banner appears "squished" sometimes - what could be causing this?
    primarykey
    data
    text
    <p>I have an app that uses GameCenter in a very simple way (just a simple leaderboard with an all time high score). Sometimes when I switch to my app I'll see the notification saying "welcome back to Game Center" but sometimes this notification appears squished like in the following image:</p> <p><a href="http://i.imgur.com/KOCFIJo.jpg" rel="nofollow">http://i.imgur.com/KOCFIJo.jpg</a></p> <p>Does anybody know what might the causing this? Because I have absolutely no idea.</p> <p>My authentication code which generates the notification banner is fairly standard.</p> <pre><code>GKLocalPlayer *localPlayer = [GKLocalPlayer localPlayer]; [GKLocalPlayer localPlayer].authenticateHandler = ^(UIViewController *viewController, NSError *error) { // If there is an error, do not assume local player is not authenticated. if (localPlayer.isAuthenticated) { // Enable Game Center Functionality self.gameCenterAuthenticationComplete = YES; [self enableGameCenter:YES]; gameCenterButton.enabled=true; } else { NSLog(@"game center not logged in"); // User has logged out of Game Center or can not login to Game Center, your app should run // without GameCenter support or user interface. self.gameCenterAuthenticationComplete = NO; [self enableGameCenter:NO]; [self presentViewController:viewController animated:true completion:nil ]; gameCenterButton.enabled=false; } }; </code></pre> <p>One additional piece of information is that my app is in portrait orientation when this problem occurs. It seems like if I rotate my phone 90 degrees while the banner is showing, it will look normally in landscape but in portrait it looks all squished. Does this help explain it?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload