RBImageSelectionField Class Reference

Inherits from UIView
Declared in RBImageSelectionField.h

Overview

An image selection field.

  delegate

A delegate to receive image selection field events.

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

Declared In

RBImageSelectionField.h

  itemSize

The size of image item cells. Default = 150, 150.

@property (nonatomic) CGSize itemSize

Declared In

RBImageSelectionField.h

  itemSizeMode

The sizing moode of items. Default = RBImageSelectionFieldItemSizeModeSize.

@property (nonatomic) RBImageSelectionFieldItemSizeMode itemSizeMode

Declared In

RBImageSelectionField.h

  allowsSelection

Whether or not selection is allowed. Setting this to NO is useful if you just want to display a set of images. Default = YES.

@property (nonatomic) BOOL allowsSelection

Declared In

RBImageSelectionField.h

  allowsMultipleSelection

Whether or not multiple selection is allowed. Default = NO.

@property (nonatomic) BOOL allowsMultipleSelection

Declared In

RBImageSelectionField.h

  zeroSelectionAllowed

Whether or not zero selection is allowed. Default = YES.

@property (nonatomic) BOOL zeroSelectionAllowed

Declared In

RBImageSelectionField.h

  failureImage

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

@property (nonatomic, nullable) UIImage *failureImage

Declared In

RBImageSelectionField.h

  failureImageContentMode

The content mode of the failure image.

@property (nonatomic) UIViewContentMode failureImageContentMode

Declared In

RBImageSelectionField.h

  selectedOverlayImage

The optional image overlay when selected.

@property (nonatomic, nullable) UIImage *selectedOverlayImage

Declared In

RBImageSelectionField.h

  selectedOverlayImageContentMode

The content mode of the selected overlay image.

@property (nonatomic) UIViewContentMode selectedOverlayImageContentMode

Declared In

RBImageSelectionField.h

  loadingImage

The default image to be used when an image is being downloaded.

@property (nonatomic, nullable) UIImage *loadingImage

Declared In

RBImageSelectionField.h

  loadingImageContentMode

The content mode of the loading image.

@property (nonatomic) UIViewContentMode loadingImageContentMode

Declared In

RBImageSelectionField.h

  pagingEnabled

Whether or not paging is enabled. This means the underlying scroll view stops on multiples of the scroll view’s bounds. Default = NO.

@property (nonatomic) BOOL pagingEnabled

Declared In

RBImageSelectionField.h

  showsVerticalScrollIndicator

Whether or not to show vertical scroll indicators. Default = YES.

@property (nonatomic) BOOL showsVerticalScrollIndicator

Declared In

RBImageSelectionField.h

  showsHorizontalScrollIndicator

Whether or not to show horizontal scroll indicators. Default = YES.

@property (nonatomic) BOOL showsHorizontalScrollIndicator

Declared In

RBImageSelectionField.h

  items

An array of RBImageSelectionFieldItem objects.

@property (nonatomic, nullable) NSArray<RBImageSelectionFieldItem*> *items

Declared In

RBImageSelectionField.h

  selectedIndexes

The selected items by index.

@property (nonatomic, readonly, nullable) NSArray<NSNumber*> *selectedIndexes

Declared In

RBImageSelectionField.h

  positioner

The layout positioner used. You may theme this positioner. Default values = spacing = 10, dimensions = 1, margin = [0, 0, 0, 0], orientation = RBOrientationHorizontal, sizing = RBLayoutGridPositionerSizeToSize.

@property (nonatomic, nonnull, readonly) RBLayoutGridPositioner *positioner

Declared In

RBImageSelectionField.h

– setSelected:at:

Updates the selection state of the image at the given index.

- (void)setSelected:(BOOL)selected at:(NSInteger)index

Parameters

selected

Whether or not the image item should be selected.

index

The index of the image item to update the selection state of.

Declared In

RBImageSelectionField.h

– unselectAllItems

Unselects all image items.

- (void)unselectAllItems

Declared In

RBImageSelectionField.h

+ defaultPositioner

The default layout positioner used. You may theme this positioner. Default = RBLayoutGridPositioner with values spacing = 0, dimensions = 1, margin = [0, 0, 0, 0], orientation = RBOrientationVertical, sizing = RBLayoutGridPositionerSizeToSize.

+ (nonnull RBLayoutPositioner *)defaultPositioner

Return Value

The default positioner.

Declared In

RBImageSelectionField.h