RBImageView Class Reference
Inherits from | UIImageView |
---|---|
Declared in | RBImageView.h |
delegate
A delegate that can implement image transformation.
@property (nonatomic, weak, nullable) id<RBImageViewDelegate> delegate
Discussion
A delegate that can implement image transformation.
Declared In
RBImageView.h
aspectRatio
The aspect ratio of the image.
@property (nonatomic, readonly) CGFloat aspectRatio
Discussion
The aspect ratio of the image.
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
Discussion
Whether or not activity indication should be showed while an image is being loaded asynchronously. Default = NO.
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
Discussion
Whether or not activity progress should be displayed where available when loading an image asynchronously. Default = NO.
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
Discussion
An optional image that should be displayed if a failure occurs loading images via the ‘loadImageFrom…’ methods.
Declared In
RBImageView.h
failureImageContentMode
The content mode of the failure image.
@property (nonatomic) UIViewContentMode failureImageContentMode
Discussion
The content mode of the failure image.
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. |
Discussion
Loads an image asynchronously from disk.
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 |
---|---|
completion |
An optional block that is called on completion. |
Discussion
Loads an image asynchronously from the network.
Declared In
RBImageView.h
– cancelLoad
Cancels the current asynchronous image load job.
- (void)cancelLoad
Discussion
Cancels the current asynchronous image load job.
Declared In
RBImageView.h