YMARatingAppearance Class Reference

Inherits from NSObject
Conforms to NSCopying
NSMutableCopying
Declared in YMANativeAssetsAppearance.h

Overview

A class with fixed settings for the standard rating appearance.

If you want to edit the settings of the standard appearance, use the YMAMutableRatingAppearance class.

  1. Properties
    1. emptyStarColor
    2. filledStarColor
    3. preferredStarSize
  2. Methods
    1. + appearanceWithEmptyStarColor:filledStarColor:starSize:

Properties

emptyStarColor

The outline color of an empty (unfilled) star.

@property (nonatomic, strong, readonly) UIColor *emptyStarColor

filledStarColor

The color of a filled star.

@property (nonatomic, strong, readonly) UIColor *filledStarColor

preferredStarSize

The preferred size of a star.

@property (nonatomic, assign, readonly) CGFloat preferredStarSize

Discussion

Note: If the use of the preferred size makes the rating too large for the space reserved for it, the maximum allowed size is used instead.

Methods

+ appearanceWithEmptyStarColor:filledStarColor:starSize:

Creates an object of the YMARatingAppearance class, i.e., a rating with the specified appearance (outline color, size, and other settings).

+ (instancetype)appearanceWithEmptyStarColor:(UIColor *)emptyStarColor
                             filledStarColor:(UIColor *)filledStarColor
                                    starSize:(CGFloat)starSize

Parameters

emptyStarColor

The outline color of an empty (unfilled) star.

filledStarColor

The color of a filled star.

starSize

The preferred size of a star.

Return Value

Configured rating appearance.


Generated by appledoc 2.2.1 (build 1334).