ScreenBlocker-iOS
v1.0.3
描述
ScreenBlocker-iOS 在您的应用进入后台时添加了一个覆盖层,用于遮蔽内容。
一旦您的应用再次进入前台,覆盖层就会淡出。
安装
pod 'ScreenBlocker-iOS', '1.0.3'
...即将推出...
...即将推出...
如何使用
简单地将 ScreenBlocker-iOS 导入 AppDelegate
import ScreenBlocker_iOS
将以下代码添加到 AppDelegate 的 applicationWillResignActive 方法中
ScreenBlocker.shared.show()
或者
ScreenBlocker.shared.show(bgColor: UIColor.someColor)
将以下代码添加到 AppDelegate 的 applicationDidBecomeActive 方法中
ScreenBlocker.shared.hide()
许可证
版权
所有内容版权 © Christopher James Allinson 2018。保留一切权利。