GTAlertBar 1.0.2

GTAlertBar 1.0.2

测试已测试
Lang语言 SwiftSwift
许可证 MIT
Released最新发布2016年8月
SPM支持 SPM

Ian Spence 维护。



GTAlertBar

用于显示 iOS 应用程序中警报栏的无废话管理器。

你是否已经厌倦了处理那些让您陷入固定颜色、无法更改图像或根本无法以编程方式删除条的糟糕警报栏管理器?

现在你不再需要了!因为现在你找到了 GTAlertBar,如果我可以这么说的话,这绝对是市场上最好的警报栏管理器。

使用它

安装它

安装很简单!插入 15 张盘中的第 1 张并确保您已配置好 SoundBlaster 音频设备。

将这些代码添加到您的 Podfile 中

target 'YourSlickApp' do
    use_frameworks!

    pod 'GTAlertBar'
end

配置它

GTAlertBar 被设计成高度可定制的,以满足您所有的警报栏需求!

所有配置选项都整齐地保存在 GTAlertBarOptions 类中。

有关完整配置文档,请参阅 配置 wiki 页面

指定背景颜色

let options = GTAlertBarOptions()
options.colors.background = UIColor.redColor()

包含可选的图像

let options = GTAlertBarOptions()
options.image = UIImage(named: "myImage.png")

可选择使用包含的图像

let options = GTAlertBarOptions()
options.image = GTAlertBarImage.exclamation
options.image = GTAlertBarImage.info
options.image = GTAlertBarImage.caution
options.image = GTAlertBarImage.check

显示

GTAlertBar.barAttachedToView(self,
    title: "Alert Title",
    body: "Optional alert body",
    options: options)

隐藏

let bar = GTAlerBar.barAttachedToView...
bar.removeFromParentView()