QMUIToastBackgroundView

@interface QMUIToastBackgroundView : UIView

/**
 * 是否需要磨砂,默认NO。仅支持iOS8及以上版本。可以通过修改`styleColor`来控制磨砂的效果。
 */
@property(nonatomic, assign) BOOL shouldBlurBackgroundView;

@property(nullable, nonatomic, strong, readonly) QMUIVisualEffectView *effectView;

/**
 * 如果不设置磨砂,则styleColor直接作为`QMUIToastBackgroundView`的backgroundColor;如果需要磨砂,则会新增加一个`UIVisualEffectView`放在`QMUIToastBackgroundView`上面。
 */
@property(nullable, nonatomic, strong) UIColor *styleColor UI_APPEARANCE_SELECTOR;

/**
 * 设置圆角。
 */
@property(nonatomic, assign) CGFloat cornerRadius UI_APPEARANCE_SELECTOR;

@end

Undocumented

  • 是否需要磨砂,默认NO。仅支持iOS8及以上版本。可以通过修改styleColor来控制磨砂的效果。

    Declaration

    Objective-C

    @property (nonatomic) BOOL shouldBlurBackgroundView;

    Swift

    var shouldBlurBackgroundView: Bool { get set }
  • Undocumented

    Declaration

    Objective-C

    @property(nullable, nonatomic, strong, readonly) QMUIVisualEffectView *effectView

    Swift

    var effectView: QMUIVisualEffectView? { get }
  • 如果不设置磨砂,则styleColor直接作为QMUIToastBackgroundView的backgroundColor;如果需要磨砂,则会新增加一个UIVisualEffectView放在QMUIToastBackgroundView上面。

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIColor *styleColor;

    Swift

    var styleColor: UIColor? { get set }
  • 设置圆角。

    Declaration

    Objective-C

    @property (nonatomic) CGFloat cornerRadius;

    Swift

    var cornerRadius: CGFloat { get set }