Skip to content

Instantly share code, notes, and snippets.

@edopelawi
Last active May 21, 2016 15:04
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
A sample function that returns a NSString out of NSDictionary.
/// Will return @p NSString representation of user's token from passed @p payload, or @p nil if there's no user token in it.
- (NSString *)userTokenFromJSON:(NSDictionary *)json
{
return json["user_token"];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment