File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Getting started with `PFFileObject` is easy. First, you'll need to have the data
9
9
<div class =" language-toggle " markdown =" 1 " >
10
10
``` objective_c
11
11
NSData *data = [@"Working at Parse is great!" dataUsingEncoding:NSUTF8StringEncoding];
12
- PFFile *file = [PFFile fileWithName :@"resume.txt" data:data];
12
+ PFFile *file = [PFFileObject fileObjectWithName :@"resume.txt" data:data];
13
13
```
14
14
``` swift
15
15
let str = " Working at Parse is great!"
@@ -73,7 +73,7 @@ You can easily store images by converting them to `NSData` and then using `PFFil
73
73
<div class =" language-toggle " markdown =" 1 " >
74
74
``` objective_c
75
75
NSData *imageData = UIImagePNGRepresentation(image);
76
- PFFile *imageFile = [PFFile fileWithName :@"image.png" data:imageData];
76
+ PFFile *imageFile = [PFFileObject fileObjectWithName :@"image.png" data:imageData];
77
77
78
78
PFObject *userPhoto = [PFObject objectWithClassName:@"UserPhoto"];
79
79
userPhoto[@"imageName"] = @"My trip to Hawaii!";
You can’t perform that action at this time.
0 commit comments