We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 159c0d6 + 91ab36b commit 2f70f59Copy full SHA for 2f70f59
Parse/PFObject.m
@@ -1634,8 +1634,9 @@ + (instancetype)objectWithClassName:(NSString *)className {
1634
1635
+ (instancetype)objectWithClassName:(NSString *)className dictionary:(NSDictionary *)dictionary {
1636
PFObject *object = [self objectWithClassName:className];
1637
+ PFDecoder *objectDecoder = [PFDecoder objectDecoder];
1638
[dictionary enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop) {
- object[key] = obj;
1639
+ object[key] = [objectDecoder decodeObject:obj];
1640
}];
1641
return object;
1642
}
0 commit comments