FBAdStarRatingView
Đã có phiên bản mới hơn của lớp này. Hãy kiểm tra phiên bản mới nhất.

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

Inherits from:UIView
Declared in:FBAdStarRatingView.h
Thuộc tính
primaryColor

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

@property (strong, nonatomic, nonnull) UIColor *primaryColor;
Đã tuyên bố trong: FBAdStarRatingView.h
rating

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

@property (nonatomic) struct FBAdStarRating rating;
Đã tuyên bố trong: FBAdStarRatingView.h
secondaryColor

The color drawn for empty stars. Defaults to gray.

@property (strong, nonatomic, nonnull) UIColor *secondaryColor;
Đã tuyên bố trong: FBAdStarRatingView.h
Phương thức thực thể
initWithFrame:withStarRating:

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

Thông sốMô tả
frame

Frame of this view.

starRating

Star rating from a native ad.

- (nonnull instancetype)
initWithFrame: (CGRect)frame
withStarRating: (struct FBAdStarRating)starRating
NS_DESIGNATED_INITIALIZER;
Đã tuyên bố trong: FBAdStarRatingView.h