PFImageView Class Reference

Inherits from UIImageView
Declared in PFImageView.h

Overview

An image view that downloads and displays remote image stored on Parse’s server.

  file

The remote file on Parse’s server that stores the image.

@property (nullable, nonatomic, strong) PFFile *file

Discussion

Warning: Note that the download does not start until loadInBackground: is called.

Declared In

PFImageView.h

– loadInBackground

Initiate downloading of the remote image.

- (BFTask *)loadInBackground

Return Value

The task, that encapsulates the work being done.

Discussion

Once the download completes, the remote image will be displayed.

Declared In

PFImageView.h

– loadInBackground:

Initiate downloading of the remote image.

- (void)loadInBackground:(nullable PFImageViewImageResultBlock)completion

Parameters

completion

the completion block.

Discussion

Once the download completes, the remote image will be displayed.

Declared In

PFImageView.h

– loadInBackground:progressBlock:

Initiate downloading of the remote image.

- (void)loadInBackground:(nullable PFImageViewImageResultBlock)completion progressBlock:(nullable void ( ^ ) ( int percentDone ))progressBlock

Parameters

completion

the completion block.

progressBlock

called with the download progress as the image is being downloaded. Will be called with a value of 100 before the completion block is called.

Discussion

Once the download completes, the remote image will be displayed.

Declared In

PFImageView.h