zoukankan      html  css  js  c++  java
  • swift开发笔记27 UserNotifications

     

    UNNotificationAction

    UNNotificationCategory

     

    UNCalendarNotificationTrigger

     

    UNMutableNotificationContent

    UNNotificationAttachment

    UNNotificationRequest

    /// Remove pending notifications to avoid duplicates.

            UNUserNotificationCenter.current().removeAllPendingNotificationRequests()

            /// Provide request to notification center.

            UNUserNotificationCenter.current().add(notiRequest) { (error) in

                if let error = error {

                    print("Error: " + error.localizedDescription)

                }

            }

     

  • 相关阅读:
    PGsql 基本用户权限操作
    Node.js版本管理工具 nvm
    js 数字前面自动补零
    浮点数向偶数舍入的问题 Round-to-Even for Floating Point
    Linux 目录下属性查看操作
    C语言之Bit-wise Operation和Logical Operation
    (转)SqlBulkCopy批量复制数据
    (转)VS2010启动调试时老是提示正在下载公共符号
    转 SVN 在vs中的使用
    (转)关于 HTTP meta 的 IE=edge 说明
  • 原文地址:https://www.cnblogs.com/dengchaojie/p/8177169.html
Copyright © 2011-2022 走看看