Created
September 21, 2014 08:52
-
-
Save quellish/1d2146d4fa77117c85ff to your computer and use it in GitHub Desktop.
JSON to Objective-C date accessor
This file contains hidden or 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
| - (void) setDateString:(NSString *)string { | |
| NSDate *date = [someDateThing dateFromISO8601String:string]; | |
| return [self setDate:date]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment