Created
August 10, 2014 13:13
-
-
Save marius92mc/ff1a1d091594d5a23503 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FBRequest* friends_request = [FBRequest requestForMyFriends]; | |
[friends_request startWithCompletionHandler:^(FBRequestConnection* connection, | |
NSDictionary* result, | |
NSError* error) | |
{ | |
NSArray* friends = [result objectForKey:@"data"]; | |
//... | |
for (NSDictionary<FBGraphUser>* friend in friends) | |
{ | |
[friends_name addObject:friend.name]; | |
[friends_id addObject:friend.objectID]; | |
} | |
[friends_name sortUsingSelector:@selector(localizedCaseInsensitiveCompare:)]; | |
[HMSeenByAll setFriendsListNameSorted:friends_name]; | |
//... | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment