Skip to content

akring/BlurBG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

show blur layer when your app is in background

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published