Skip to content

Commit a2feb78

Browse files
natanrolnikflovilmart
authored andcommitted
Finish updating docs about PFFileObject changes in Obj-C (#580)
1 parent b14d2d4 commit a2feb78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_includes/ios/files.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Getting started with `PFFileObject` is easy. First, you'll need to have the data
99
<div class="language-toggle" markdown="1">
1010
```objective_c
1111
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];
1313
```
1414
```swift
1515
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
7373
<div class="language-toggle" markdown="1">
7474
```objective_c
7575
NSData *imageData = UIImagePNGRepresentation(image);
76-
PFFile *imageFile = [PFFile fileWithName:@"image.png" data:imageData];
76+
PFFile *imageFile = [PFFileObject fileObjectWithName:@"image.png" data:imageData];
7777
7878
PFObject *userPhoto = [PFObject objectWithClassName:@"UserPhoto"];
7979
userPhoto[@"imageName"] = @"My trip to Hawaii!";

0 commit comments

Comments
 (0)