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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:05:15+00:00 2026-05-17T21:05:15+00:00

When an iPhone app with GameKit launches, and the device is already logged in

  • 0

When an iPhone app with GameKit launches, and the device is already logged in to GameCenter, a small message slides in on top of the screen, saying something along the lines of “Welcome back %username!”.

What I found out is the following: that message appears in its own UIWindow that eventually slides the message away and releases itself. When the message is onscreen, you can log out the following:


all windows: (
"<UIWindow: 0x31fc70; frame = (0 0; 320 480); opaque = NO; autoresize = RM+BM; layer = <CALayer: 0x31fe60>>",
"<UIWindow: 0x3874c0; frame = (0 0; 320 480); opaque = NO; userInteractionEnabled = NO; layer = <CALayer: 0x387590>>"
)

I need to distinguish the two windows in the general case — I need something along the lines of a -(UIWindow *)topNormalWindow function that will return the topmost window that isn’t either A)an alert or B)the gamecenter message. I already have a -(UIWindow *)topNonAlertWindow that determines the top window that isn’t an alert, but the gamekit message isn’t, but nor is it (for my purposes) a normal window.

Also, what does autoresize = RM+BM; mean?

  • 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-17T21:05:15+00:00Added an answer on May 17, 2026 at 9:05 pm

    I solved this problem by simply checking if the window had a GKGameEventView as a subview.

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

Sidebar

Related Questions

My iPhone app formats an NSDecimalNumber as a currency using setCurrencyCode, however another screen
the iphone app I am writing shows white screen when first launched, but become
My iPhone app has an initial screen, then the main screen, and then a
I'm develop iphone app, what need connect to bluetooth device and handle disconnection of
my iPhone app uses OpenGL ES in full screen mode (the status bar is
My iPhone app uses a small database to store its settings and saved files.
My IPhone app is suddenly giving a SIGABRT error message when I attempt to
My iPhone app can't seem to use soft keyboards that doesn't use the US-like
my iphone app crashes unexpectedly and looking at the crash log I can't tell
The iPhone app that I am working on requires GET calls to a 3rd

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.