Skip to content

Instantly share code, notes, and snippets.

@edopelawi

edopelawi/SampleStringMethod.m Secret

Last active May 21, 2016
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
You can’t perform that action at this time.