Skip to content

Instantly share code, notes, and snippets.

Last active May 21, 2016 15:04
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