Skip to content

Instantly share code, notes, and snippets.

@stuartcarnie
Created July 6, 2011 06:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stuartcarnie/1066668 to your computer and use it in GitHub Desktop.
Save stuartcarnie/1066668 to your computer and use it in GitHub Desktop.
Nested blocks discussion
void RetrieveFriends(GameCenter& gameCenter, GKLocalPlayer* localPlayer)
{
[localPlayer loadFriendsWithCompletionHandler:^(NSArray* friends, NSError* error)
{
[GKPlayer loadPlayersForIdentifiers:friends withCompletionHandler:^(NSArray* players, NSError* error2)
{
dispatch_async(dispatch_get_main_queue(), ^(void)
{
TestLala(gameCenter); //, friends, players, error2);
});
}];
}];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment