/SampleStringMethod.m Secret
Last active
May 21, 2016 15:04
Star
You must be signed in to star a gist
A sample function that returns a NSString out of NSDictionary.
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
/// 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