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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:56:43+00:00 2026-05-27T05:56:43+00:00

All I made a game for the Apple iOS. Now I would like to

  • 0

All

I made a game for the Apple iOS. Now I would like to show my friend list in Apple’s Game Center.

How can I show the Game Center friend list of a logged in player on an iPhone, possibly using the UIViewController (which manages the ViewControllers)?

Any help would be appreciated..

Thanks…

  • 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-27T05:56:44+00:00Added an answer on May 27, 2026 at 5:56 am

    To show your Game center friends in your app you can use the below code given.

         -(void) retrieveFriends
       {
              GKLocalPlayer *lp = [GKLocalPlayer localPlayer]; 
              if (lp.authenticated)   
             { 
                 [lp loadFriendsWithCompletionHandler:^(NSArray *friends, NSError *error)
                 {
                     if (friends != nil)
                     {
                          [self loadPlayerData: friends];
                     }
    
                 }];
    
             }
    
        }
    
    
    
           -(void) loadPlayerData: (NSArray *) identifiers
            {
                 [GKPlayer loadPlayersForIdentifiers:identifiers withCompletionHandler:^(NSArray *players, NSError *error) 
               {
    
                  if (error != nil) 
                    {
                      // Handle the error.
                    } 
                 if (players != nil) 
                   {
              // Process the array of GKPlayer objects.
                   } 
               }];
    
              }
    

    For more reference you can use the Apple Game KIT guide. below is the link to it

    http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/GameKit_Guide/Introduction/Introduction.html

    Hope it helps..

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

Sidebar

Related Questions

I made a TicTacToe Game! Just for fun. It works and all, but can't
I made up a template to show all the fields and values from a
First of all my tree is made up of nodes that look like this:
I have a simple game that is in progress. As of right now all
when I made my game, all went fine, but suddenly I had a weird
everyone, I made a shooting game just like 1942(classic shooting game),but here's the question,
I've made a game where all objects use one sprite sheet, which works fine
So I made this flash game and all appropriate variables are entered. If a
I have made a flash game for facebook. All happened right expect when I
I made an HTML5 game that consists of many small levels. When the player

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.