UIBlurEffect.h

作者: zhYx_ | 来源:发表于2019-03-18 14:38 被阅读0次
    
    #if USE_UIKIT_PUBLIC_HEADERS || !__has_include(<UIKitCore/UIBlurEffect.h>)
    //
    //  UIBlurEffect.h
    //  UIKit
    //
    //  Copyright © 2016-2018 Apple Inc. All rights reserved.
    //
    
    #import <UIKit/UIVisualEffect.h>
    NS_ASSUME_NONNULL_BEGIN
    
    
    
    
    
    /* 模糊风格 <枚举> */
    typedef NS_ENUM(NSInteger, UIBlurEffectStyle) {
        UIBlurEffectStyleExtraLight,// 视图区域的色调比底层视图浅
        UIBlurEffectStyleLight,
        UIBlurEffectStyleDark,
        UIBlurEffectStyleExtraDark __TVOS_AVAILABLE(10_0) __IOS_PROHIBITED __WATCHOS_PROHIBITED,// 视图区域的色调比底层视图更暗
        UIBlurEffectStyleRegular NS_ENUM_AVAILABLE_IOS(10_0), // 常规模糊样式(适应user interface)
        UIBlurEffectStyleProminent NS_ENUM_AVAILABLE_IOS(10_0), // 内容更加突出(适应user interface)
    } NS_ENUM_AVAILABLE_IOS(8_0);
    
    
    
    
    #pragma mark - 模糊效果 Class
    #pragma mark -
    /*
     - UIBlurEffect
        将模糊效果应用于视觉效果视图后面的内容的对象
     - 概述
        添加模糊效果的控件,其子控件都会有模糊效果,但控件本身没有被模糊
     */
    NS_CLASS_AVAILABLE_IOS(8.0) @interface UIBlurEffect : UIVisualEffect
    /**
     实例化模糊效果
    
     @param style 风格
     @return UIBlurEffect
     */
    + (UIBlurEffect *)effectWithStyle:(UIBlurEffectStyle)style;
    @end
    
    
    
    
    
    NS_ASSUME_NONNULL_END
    #else
    #import <UIKitCore/UIBlurEffect.h>
    #endif
    
    

    相关文章

      网友评论

        本文标题:UIBlurEffect.h

        本文链接:https://www.haomeiwen.com/subject/gfgvmqtx.html