iOS block with return value
问题 I am using a block from Facebook SDK. It returns a dictionary. I want that dictionary as a return value of a method. I am trying to wrap my head around the whole block concept but need a nudge in the right direction. The block: (the argument for the block is a string userFBid) -(NSDictionary*) getMutualFBFriendsWithFBid:(NSString*)fbID { [FBRequestConnection startWithGraphPath:[NSString stringWithFormat:@"/%@/mutualfriends/%@", [[PFUser currentUser] objectForKey:kFbID],userFBid] parameters