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

  • Home
  • SEARCH
  • 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 3332762
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:43:21+00:00 2026-05-17T23:43:21+00:00

I suppose this question is language-agnostic, tho I’m asking it in regards to building

  • 0

I suppose this question is language-agnostic, tho I’m asking it in regards to building an iPhone app that uses the new Game Center API, but please feel free to answer in general software engineering terms.

I’m building a game for the iPhone that takes advantage of the new Game Center capabilities (i.e. Auto-matching, leaderboards, achievements, etc.), but I want to write the game so that it works on all iPhones, including those that don’t have Game Center installed and cannot make use of the Game Center capabilities. To do this, Apple recommends the approach…

“We’d recommend making one version of the app which dynamically detects whether Game Center is available and uses it (or not) based on that.”

With my current level of programming, the simple approach I would take to implementing this would be to check if whether or not Game Center is available and set a simple boolean flag accordingly. Then use that flag to control the flow of execution throughout the software. I’m sure I could make that work, but because I enjoy learning and enjoy programming, I was wondering if there’s a better approach or design pattern for disabling blocks of functionality that aren’t supported, along with controlling the flow of execution.

Thanks in advance for your wisdom!

  • 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-17T23:43:21+00:00Added an answer on May 17, 2026 at 11:43 pm

    Check out the Game Kit code examples on Apple’s dev site. They implement a GameCenterManager class that will work well for what you’re trying to accomplish.

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

Sidebar

Related Questions

This question is language independent. I have an application that handles requests in a
I'm posting this question as language and framework agnostic since I think it may
This is a generic question that applies to (probably) any high-level programming language. Here
This is a language agnostic question, but I'm wandering what people prefer in terms
When developing a class (in C# but I suppose this question is somewhat language
I suppose this question is more general than working with COM components. I have
This question is related to awk, I suppose. I have no experience with awk.
You will suppose this is a big question.but there might be a simple problem
This question was asked to me in an interview. Suppose char *p=malloc(n) assigns more
I was recently asked this question in an interview. Lets suppose I have 2000

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.