Last active
December 19, 2015 17:38
-
-
Save mono0926/5992878 to your computer and use it in GitHub Desktop.
mantle snippet
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
+(NSDictionary *)JSONKeyPathsByPropertyKey { | |
// マッピングしたいものだけ指定。全て名前が一緒なら空のままでOK。 | |
return @{@"hogeFuga", @"hoge_fuga"}; | |
} | |
+(NSValueTransformer*)chaptersJSONTransformer { | |
return [NSValueTransformer mtl_JSONArrayTransformerWithModelClass:UIChapter.class]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment