KDNotification 0.1.5

KDNotification 0.1.5

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布最后发布2016年9月

Keke Dandois 维护。



KDNotification 是一个轻量级框架,用于显示和与应用程序中的通知和toast进行交互。通用样式灵感来源于 iOS 10 的通知。

屏幕截图

通知 Toast

使用

通知
    [KDNotification showWithText:@"PING" duration:3.0 tapped:^ {
        NSLog(@"tapped notification");
    }];
Toast
    [KDToastNotification showWithText:@"this is a toast. Who has the butter?" duration:3.0 tapped:^ {
        NSLog(@"tapped toast");
    }];

设置深色主题

    [KDNotification setNotificionStyle:UIBlurEffectStyleDark];

示例

要运行示例项目,请克隆仓库,然后从示例目录运行 pod install

安装

KDNotification 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile

pod "KDNotification"

待办事项

  • 自定义选项(文本颜色,字体等)
  • 动作

作者

Kéké Dandois Twitter: @kekedandois

许可证

KDNotification 在 MIT 许可下提供。有关更多信息,请参阅 LICENSE 文件。