• 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)

                }

            }

     

  • 相关阅读:
    在dataGridView中实现批量删除
    VS2005制作简单的安装程序
    [WinForms]
    TreeView的联动复选框
    TreeView
    AcceptChanges()和RejectChanges()
    用C#在WINDOWS中实现新用户帐号的创建
    测试成功的窗体应用[批量新增、删除、保存]
    TreeView的递归读取
    VS2005中部署C#应用程序
  • 原文地址:https://www.cnblogs.com/dengchaojie/p/8177169.html
Copyright © 2020-2023  润新知