RBImageScrollView Class Reference

Inherits from UIView
Declared in RBImageScrollView.h

Overview

A managed image view in a scroll area. Supports zooming.

  image

Gets or sets the UIImage object being displayed.

@property (nonatomic, nullable) UIImage *image

Discussion

Gets or sets the UIImage object being displayed.

Declared In

RBImageScrollView.h

  failureImage

An optional image that should be displayed if a failure occurs loading images.

@property (nonatomic, nullable) UIImage *failureImage

Discussion

An optional image that should be displayed if a failure occurs loading images.

Declared In

RBImageScrollView.h

  zoomEnabled

Whether or not zooming is enabled.

@property (nonatomic) BOOL zoomEnabled

Discussion

Whether or not zooming is enabled.

Declared In

RBImageScrollView.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.

Discussion

Loads an image asynchronously from disk.

Declared In

RBImageScrollView.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.

Discussion

Loads an image asynchronously from the network.

Declared In

RBImageScrollView.h

– cancelLoad

Cancels the current asynchronous image load job.

- (void)cancelLoad

Discussion

Cancels the current asynchronous image load job.

Declared In

RBImageScrollView.h

  doubleTapZoomEnabled

Whether or not double tap zooming is enabled.

@property (nonatomic) BOOL doubleTapZoomEnabled

Discussion

Whether or not double tap zooming is enabled.

Declared In

RBImageScrollView.h

  doubleTapRecogniser

The double tap recognizer that triggers zooming.

@property (nonatomic, readonly, nullable) UITapGestureRecognizer *doubleTapRecogniser

Discussion

The double tap recognizer that triggers zooming.

Declared In

RBImageScrollView.h