FBAdStarRatingView
이 클래스의 최신 버전을 사용할 수 있습니다. 확인해보세요 최신 버전.

Helper view that draws a star rating based off a native ad.

Inherits from:UIView
Declared in:FBAdStarRatingView.h
속성
primaryColor

The color drawn for filled-in stars. Defaults to yellow.

@property (strong, nonatomic, nonnull) UIColor *primaryColor;
정의된 값: FBAdStarRatingView.h
rating

The current rating from an FBNativeAd. When set, updates the view.

@property (nonatomic) struct FBAdStarRating rating;
정의된 값: FBAdStarRatingView.h
secondaryColor

The color drawn for empty stars. Defaults to gray.

@property (strong, nonatomic, nonnull) UIColor *secondaryColor;
정의된 값: FBAdStarRatingView.h
인스턴스 메서드
initWithFrame:withStarRating:

Initializes a star rating view with a given frame and star rating.

매개변수설명
frame

Frame of this view.

starRating

Star rating from a native ad.

- (nonnull instancetype)
initWithFrame: (CGRect)frame
withStarRating: (struct FBAdStarRating)starRating
NS_DESIGNATED_INITIALIZER;
정의된 값: FBAdStarRatingView.h