Skip to content

Instantly share code, notes, and snippets.

@zaneclaes
Created December 4, 2013 23:14
Show Gist options
  • Save zaneclaes/7797342 to your computer and use it in GitHub Desktop.
Save zaneclaes/7797342 to your computer and use it in GitHub Desktop.
if(self.socialConnections.count == 0) {
return @"EMPTY STATE...";// TODO: ZC What does the empty state look like?
}
else if(self.socialConnections.count == 1) {
return connection.caption;
}
else if(self.socialConnections.count == 2) {
BBSocialConnection *otherConnection = self.socialConnections[1];
return [NSString stringWithFormat:BBLocalizedString(@"mobile.all.connections_single", @"%@ and %@ are connected to %@", @"Viewing a user profile: people are connected through facebook friends, etc."),connection.targetUser.shortName,otherConnection.targetUser.shortName,self.user.shortName];
}
else {
return [NSString stringWithFormat:BBLocalizedString(@"mobile.all.connections_many", @"%@ and %d others are connected to %@", @"Viewing a user profile: people are connected through facebook friends, etc."),connection.targetUser.shortName,self.user.shortName];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment