RBRatingField Class Reference

Inherits from UIView
Declared in RBRatingField.h

Overview

A view that provides granular rating stars (or another image).

  orientation

The orientation of the stars layout. Default = RBOrientationHorizontal.

@property (nonatomic) RBOrientation orientation

Declared In

RBRatingField.h

  rating

Gets or sets the current rating. Decimals allowed.

@property (nonatomic) float rating

Declared In

RBRatingField.h

  maximumRating

Gets or sets the maximum rating. Default = 5. Must be > 0.

@property (nonatomic) NSInteger maximumRating

Declared In

RBRatingField.h

  filledImage

The image for the filled state.

@property (nonatomic, nullable) UIImage *filledImage

Declared In

RBRatingField.h

  unfilledImage

The image for the unfilled state.

@property (nonatomic, nullable) UIImage *unfilledImage

Declared In

RBRatingField.h

  spaceBetweenImages

The spacing to use between each image. Default = 0.

@property (nonatomic) CGFloat spaceBetweenImages

Declared In

RBRatingField.h

  enabled

Whether or not the rating field is currently enabled and will accept user interaction. Default = YES.

@property (nonatomic) BOOL enabled

Declared In

RBRatingField.h

  zeroSelection

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

@property (nonatomic) BOOL zeroSelection

Declared In

RBRatingField.h