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

Declared In

RBImageScrollView.h

  failureImage

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

@property (nonatomic, nullable) UIImage *failureImage

Declared In

RBImageScrollView.h

  zoomEnabled

Whether or not zooming is enabled.

@property (nonatomic) BOOL zoomEnabled

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.

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.

Declared In

RBImageScrollView.h

– cancelLoad

Cancels the current asynchronous image load job.

- (void)cancelLoad

Declared In

RBImageScrollView.h

  doubleTapZoomEnabled

Whether or not double tap zooming is enabled.

@property (nonatomic) BOOL doubleTapZoomEnabled

Declared In

RBImageScrollView.h

  doubleTapRecogniser

The double tap recognizer that triggers zooming.

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

Declared In

RBImageScrollView.h