RBImageView Class Reference

Inherits from UIImageView
Declared in RBImageView.h

Overview

An image view with asynchronous image loading.

  delegate

A delegate that can implement image transformation.

@property (nonatomic, weak, nullable) id<RBImageViewDelegate> delegate

Declared In

RBImageView.h

  aspectRatio

The aspect ratio of the image.

@property (nonatomic, readonly) CGFloat aspectRatio

Declared In

RBImageView.h

  shouldDisplayActivityDuringImageLoading

Whether or not activity indication should be showed while an image is being loaded asynchronously. Default = NO.

@property (nonatomic) BOOL shouldDisplayActivityDuringImageLoading

Declared In

RBImageView.h

  shouldDisplayActivityProgressDuringImageLoading

Whether or not activity progress should be displayed where available when loading an image asynchronously. Default = NO.

@property (nonatomic) BOOL shouldDisplayActivityProgressDuringImageLoading

Declared In

RBImageView.h

  failureImage

An optional image that should be displayed if a failure occurs loading images via the ‘loadImageFrom…’ methods.

@property (nonatomic, nullable) UIImage *failureImage

Declared In

RBImageView.h

  failureImageContentMode

The content mode of the failure image.

@property (nonatomic) UIViewContentMode failureImageContentMode

Declared In

RBImageView.h

  loadingImage

An optional image that should be displayed whilst an image is being download via the ‘loadImageFrom…’ methods.

@property (nonatomic, nullable) UIImage *loadingImage

Declared In

RBImageView.h

  loadingImageContentMode

The content mode of the loading image.

@property (nonatomic) UIViewContentMode loadingImageContentMode

Declared In

RBImageView.h

– loadImageFromDisk:completion:

Loads an image asynchronously from disk.

- (void)loadImageFromDisk:(nonnull NSString *)path completion:(nullable void ( ^ ) ( UIImage *__nullable image , NSError *__nullable error , BOOL wasCancelled ))completion

Parameters

path

The filesystem path to the image file.

completion

An optional block that is called on completion.

Declared In

RBImageView.h

– loadImageFromRequest:completion:

Loads an image asynchronously from the network.

- (void)loadImageFromRequest:(nonnull NSURLRequest *)request completion:(nullable void ( ^ ) ( RBImageResponse *__nonnull response ))completion

Parameters

request

The NSURLRequest request to the image.

completion

An optional block that is called on completion.

Declared In

RBImageView.h

– cancelLoad

Cancels the current asynchronous image load job.

- (void)cancelLoad

Declared In

RBImageView.h