我需要在iOS中的本地通知中显示动作按钮。我收到通知,但没有任何操作按钮。你能指导我做错了什么吗? 这是我的代码: var category = new UIMutableUserNotificationCategory();
var okAction = new UIMutableUserNotificationAction
{
Identifier =
我试着写一个函数来检查我是否已达到64个本地通知的限制。有一些解决方案来处理UIlocalNotifications,但我还没有找到一个NSlocalNotifications。这里是我的功能 func notificationLimitreached() {
let center = UNUserNotificationCenter.current()
var limit