LocalNotificationHelper

码农软件 · 软件分类 · 提醒 (Notification) · 2019-05-21 06:28:17

软件介绍

LocalNotificationHelper  是用 swift 编写的本地通知。

使用示例:

// Create and post local notifications
  LocalNotificationHelper.sharedInstance.postNotification(key: "mobiwise", title: "mobiwise", message: "Lets take a break", seconds: 5)
  /*
  LocalNotificationHelper.sharedInstance.postNotification(key: <#T##String#>, title: <#T##String#>, message: <#T##String#>, date: <#T##NSDate#>)
  LocalNotificationHelper.sharedInstance.postNotification(key: <#T##String#>, title: <#T##String#>, message: <#T##String#>, date: <#T##NSDate#>, soundName: <#T##String#>)
  LocalNotificationHelper.sharedInstance.postNotification(key: <#T##String#>, title: <#T##String#>, message: <#T##String#>, seconds: <#T##Double#>)
  LocalNotificationHelper.sharedInstance.postNotification(key: <#T##String#>, title: <#T##String#>, message: <#T##String#>, seconds: <#T##Double#>, soundName: <#T##String#>)
*/
  // Create action buttons and register notification
  let actionOne = LocalNotificationHelper.sharedInstance.createUserNotificationActionButton(identifier: ACTION_ONE_IDENTIFIER, title: "Like")
  let actionTwo = LocalNotificationHelper.sharedInstance.createUserNotificationActionButton(identifier: ACTION_TWO_IDENTIFIER, title: "Dislike")
  let actions = [actionOne,actionTwo]
  LocalNotificationHelper.sharedInstance.registerUserNotificationWithActionButtons(actions: actions)


本文地址:https://codercto.com/soft/d/6198.html

信息学奥林匹克教程·提高篇

信息学奥林匹克教程·提高篇

吴耀斌 / 湖南师范大学出版社 / 2003-1 / 24.00元

《信息学奥林匹克教程》(提高篇)既有各个算法设计基本思路的讲解及对求解问题的分析,注重了算法引导分析与不同算法的比较,又给出了具体的编程思路与参考程序,程序采用信息学竞赛流行的Turbo Pascal7.0语言编写,并注重结构化与可读性。一起来看看 《信息学奥林匹克教程·提高篇》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试