PFImageView

@interface PFImageView : UIImageView

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

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

    Warning

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

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) PFFile *file;
  • Initiate downloading of the remote image.

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

    Declaration

    Objective-C

    - (nonnull BFTask<UIImage *> *)loadInBackground;

    Return Value

    The task, that encapsulates the work being done.

  • Initiate downloading of the remote image.

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

    Declaration

    Objective-C

    - (void)loadInBackground:(nullable PFImageViewImageResultBlock)completion;

    Parameters

    completion

    the completion block.

  • Initiate downloading of the remote image.

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

    Declaration

    Objective-C

    - (void)loadInBackground:(nullable PFImageViewImageResultBlock)completion
               progressBlock:(nullable void (^)(int))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.