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