Ver código fonte

fix error in example code

skyline75489 9 anos atrás
pai
commit
c431f2803b
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -234,7 +234,7 @@ You can map a json key (key path) or an array of json key (key path) to one or m
 	@end
 
 	@implementation User
-	- (BOOL))modelCustomTransformFromDictionary:(NSDictionary *)dic {
+	- (BOOL)modelCustomTransformFromDictionary:(NSDictionary *)dic {
 	    NSNumber *timestamp = dic[@"timestamp"];
 	    if (![timestamp isKindOfClass:[NSNumber class]]) return NO;
 	    _createdAt = [NSDate dateWithTimeIntervalSince1970:timestamp.floatValue];
@@ -539,7 +539,7 @@ EEE MMM dd HH:mm:ss Z yyyy
 	// 当 JSON 转为 Model 完成后,该方法会被调用。
 	// 你可以在这里对数据进行校验,如果校验不通过,可以返回 NO,则该 Model 会被忽略。
 	// 你也可以在这里做一些自动转换不能完成的工作。
-	- (BOOL))modelCustomTransformFromDictionary:(NSDictionary *)dic {
+	- (BOOL)modelCustomTransformFromDictionary:(NSDictionary *)dic {
 	    NSNumber *timestamp = dic[@"timestamp"];
 	    if (![timestamp isKindOfClass:[NSNumber class]]) return NO;
 	    _createdAt = [NSDate dateWithTimeIntervalSince1970:timestamp.floatValue];