Skip to content

Latest commit

 

History

History
33 lines (17 loc) · 978 Bytes

README.md

File metadata and controls

33 lines (17 loc) · 978 Bytes

BlurBG

当应用进入后台,或从iOS多任务中心选择APP时,为APP覆盖上毛玻璃层,保护用户隐私

Show blur layer when your app is in iOS multitask center

Install

  • ImageBlur文件夹拖入你的项目中

    Drag ImageBlurFolder to your project.

  • Appdelegate.h文件中#import "BlurBackground.h"

    Add #import "BlurBackground.h"to Appdelegate.h.

How to use

  • applicationWillResignActive方法中,调用addBluredBackground:(UIWindow *)window即可添加毛玻璃层

    Call addBluredBackground:(UIWindow *)window method in applicationWillResignActive to show blur layer.

  • applicationDidBecomeActive方法中,调用removeBluredBackground即可移除毛玻璃层

    Call removeBluredBackground method in applicationDidBecomeActive` to remove blur layer.

具体细节参考Demo

For more details,view the Demo code.

Preview

PNG