You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _includes/ios/objects.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -544,7 +544,7 @@ So far we've used values with type `NSString`, `NSNumber`, and `PFObject`. Parse
544
544
* Array => `NSArray`
545
545
* Object => `NSObject`
546
546
* Date => `NSDate`
547
-
* File => `PFFile`
547
+
* File => `PFFileObject`
548
548
* Pointer => other `PFObject`
549
549
* Relation => `PFRelation`
550
550
* Null => `NSNull`
@@ -596,7 +596,7 @@ bigObject.saveInBackground()
596
596
```
597
597
</div>
598
598
599
-
We do not recommend storing large pieces of binary data like images or documents on `PFObject`. `PFObject`s should not exceed 128 kilobytes in size. We recommend you use `PFFile`s to store images, documents, and other types of files. You can do so by instantiating a `PFFile` object and setting it on a field. See [Files](#files) for more details.
599
+
We do not recommend storing large pieces of binary data like images or documents on `PFObject`. `PFObject`s should not exceed 128 kilobytes in size. We recommend you use `PFFileObject`s to store images, documents, and other types of files. You can do so by instantiating a `PFFileObject` object and setting it on a field. See [Files](#files) for more details.
600
600
601
601
For more information about how Parse handles data, check out our documentation on [Data](#data).
602
602
@@ -692,7 +692,7 @@ If you need more complicated logic than simple property access, you can declare
692
692
}
693
693
```
694
694
```swift
695
-
@NSManagedvar iconFile: PFFile
695
+
@NSManagedvar iconFile: PFFileObject
696
696
697
697
funciconView() -> UIImageView {
698
698
let view =PFImageView(imageView: PlaceholderImage)
Copy file name to clipboardExpand all lines: _includes/ios/user-interface.md
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -567,7 +567,7 @@ A good starting point to learn more is to look at the [API for the class](http:/
567
567
568
568
### Loading Remote Images in Cells
569
569
570
-
`PFQueryTableViewController` makes it simple to display remote images stored in the Parse Cloud as `PFFile`s. All you need to do is to override `tableView:cellForRowAtIndexPath:object:` and return a `PFTableViewCell` with its `imageView`'s `file` property specified. If you would like to display a placeholder image to be shown before the remote image is loaded, assign the placeholder image to the `image` property of the `imageView`.
570
+
`PFQueryTableViewController` makes it simple to display remote images stored in the Parse Cloud as `PFFileObject`s. All you need to do is to override `tableView:cellForRowAtIndexPath:object:` and return a `PFTableViewCell` with its `imageView`'s `file` property specified. If you would like to display a placeholder image to be shown before the remote image is loaded, assign the placeholder image to the `image` property of the `imageView`.
571
571
572
572
<divclass="language-toggle"markdown="1">
573
573
```objective_c
@@ -580,7 +580,7 @@ A good starting point to learn more is to look at the [API for the class](http:/
This table shows a list of cute animal photos which are stored in the Parse Cloud, as `PFFile`s. "placeholder.jpg" is an image included in the application bundle which is shown before the animal photos are downloaded.
612
+
This table shows a list of cute animal photos which are stored in the Parse Cloud, as `PFFileObject`s. "placeholder.jpg" is an image included in the application bundle which is shown before the animal photos are downloaded.
613
613
614
614
The images are downloaded on demand. As you scroll through the table, the images in the currently visible cells are downloaded. This just-in-time behavior is desirable because not only does it conserve bandwidth, it also ensures timely display of visible images. If a more aggressive loading behavior is desired, you can use the `loadInBackground` method on `imageView` to download the image.
615
615
@@ -657,13 +657,13 @@ When the user is offline or a Parse error was generated from a query, an alert c
657
657
658
658
## PFImageView
659
659
660
-
Many apps need to display images stored in the Parse Cloud as `PFFile`s. However, to load remote images with the built-in `UIImageView` involves writing many lines of boilerplate code. `PFImageView` simplifies this task:
660
+
Many apps need to display images stored in the Parse Cloud as `PFFileObject`s. However, to load remote images with the built-in `UIImageView` involves writing many lines of boilerplate code. `PFImageView` simplifies this task:
@@ -680,7 +680,7 @@ If assigned to, the `image` property is used to display a placeholder before the
680
680
681
681
## PFTableViewCell
682
682
683
-
Many apps need to display table view cells which contain images stored in the Parse Cloud as `PFFile`s. However, to load remote images with the built-in `UITableViewCell` involves writing many lines of boilerplate code. `PFTableViewCell` simplifies this task by exposing an `imageView` property of the type `PFImageView` that supports remote image loading:
683
+
Many apps need to display table view cells which contain images stored in the Parse Cloud as `PFFileObject`s. However, to load remote images with the built-in `UITableViewCell` involves writing many lines of boilerplate code. `PFTableViewCell` simplifies this task by exposing an `imageView` property of the type `PFImageView` that supports remote image loading:
684
684
685
685
<divclass="language-toggle"markdown="1">
686
686
```objective_c
@@ -693,7 +693,7 @@ Many apps need to display table view cells which contain images stored in the Pa
Like `UITableViewCell`, `PFTableViewCell` supports the default layout styles. Unlike `UITableViewCell`, `PFTableViewCell`'s `imageView` property is of the type `PFImageView`, which supports downloading remote images in `PFFile`.
725
+
Like `UITableViewCell`, `PFTableViewCell` supports the default layout styles. Unlike `UITableViewCell`, `PFTableViewCell`'s `imageView` property is of the type `PFImageView`, which supports downloading remote images in `PFFileObject`.
726
726
727
727
Although it can be used independently, `PFTableViewCell` really shines when used in `PFQueryTableViewController`. `PFQueryTableViewController` knows about `PFTableViewCell` and loads the images automatically. This behavior is discussed in detail in the documentation for `PFQueryTableViewController`.
0 commit comments